I have attached the patch file and the new files to be added in order to use jQuery (themes and js files)
This will pop up a jQuery dialog box to type the enum,set values and each values should be typed in each new line. its very easy to use and userfriendyl since users need not to type the quotation marks, commas and so on.
Hope its usefull for all.
Please extract the zip file and add the files iside the js folder.
This zip file contains the followings.
1. js and css theme files needed for jQuery dialog box
2. javascript file - contains the functions to popup jQuery dialog box for set and enum.
1. There is already standard way to include js files, please use it.
2. Please do not use short php open tags.
3. The dialog is too small for textarea in my browser.
4. The resize control in dialog is on left side, while it probably should be on right side.
5. The most of js files you include are already present in master.
6. Please use external binding of js instead of inline code.
Can any one let me now, how to add new js files and css files?
thank you.
Can any one let me know, how to add new js files and css files?
thank you.
You can use git add to add them to the repository.
I'm working on it. I'll make the changes and update it. thank you
Hi, can anyone please update the whole jQuery files to the repository including the themes,ui scripts?
I have found few abnormal behaviors while doing the coding for this particular section. I think these may helpful for future changes.
1. The text area width and height cannot be controlled by using the rows & cols attributes. I have used inline css to make fix size at last.
2. The jQuery width and height was unable to change using height: , and width:. Also the resize control was in the left side.
The same code is working perfectly normal and gives the expected output when it runs separatly without adding inside these files. But its not working as expected when integrated into the phpMyAdmin files.
I think the issue is due to some other javascript that was present already. still didnt figureout which causes this abnormal behavior. if anyone knows please let me know.
thank you
There might have been some interactions with mootools, which was just removed in git, can you try if you still have problems with this?
Also there should be now full jquery ui including theme.
after removing mootools its working without any errors in my local copy.
Only problem that i have now is that I'm unable to add the js file in the standard way that was used before. Its not working for me.
This is how i have added the js file
$GLOBALS['js_include'][] = 'enum.js';
The js file is added inside js directory
but its not working. I couldnt figure out whats wrong with that. can anyone help me in this?
patch file
Javascript file
I have attached patch file and the js file to be added to the repository.
I tried to add directly to the repository, but its failed. I dont know the reason why i couldnt be able to add the js file.
But i have attached the file with this.
Everything works fine and the previous errors are sort out.
But still i have the problem of calling the js file in the standard way. can anyone guide me regarding this? Also please upload the js file to repository.
thank you
Use the js_include mechanism from a higher-level file like tbl_alter.php. I have sent to the devel list a longer explanation.
final_patch
I have attached the final patch file. No need to add the enum.js file. Only the patch file is enough since the functions are added in functions.js
Also the inline js calls are omitted in this patch. jquery focus event used.
1. Please avoid using global js variables with such common name as id.
2. The div should have default style to be hidden to avoid appearing in browsers without javascript.
final patch_20_04_10
its done...:P
When adding column to table, I get following error:
$("#dialog").dialog is not a function
js/functions.js:1733
edited patch_21_04_10
sorry. i forget to add the jquery js files to tbl_addfield.php.
now its working fine.
Another thing I just noticed: you should escape quotes when constructing the value. Also parting escaped quotes does not seem to work.