Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 06-22-2009, 08:13 PM   #1
vBulletin Owner
 
Join Date: Jun 2009
Location: http://vbenhancer.com
Posts: 154
nexia has a spectacular aura about
Thumbs up REQ: universal Ajax function/script to activate/deactivate

Ok, i'd like to have the collaboration of a Ajax wizard here, to create a function i can apply to any feature i'd like to code on my side...(i usually release them)

my problem is that i do not understand javascript's logic and code, so i have no power over ajax. i'd like to have a function that when we click on a icon (activate.gif/png), it call a function in ajax.php that will activate what it is supposed to do, and then the return xml will be a change of icon to indicate the final status (activated.gif or error.gif)...

it could be cool to have that icon while in progress... but not needed... i know how to activate this one though...

the function called in ajax.php could be a feature on the forum, or a setting for the member, i have a list of like 15 things i'd like to transform in ajax, and they all are that way...

also, it need to be multi-times clickable.... people are sometimes frantic to click and reclick to see if things are working for real... so if we double-click ones, it send a first call to the function, and if we click a second time, it's doing the same call... the function will simply activate/deactivate on its own, not need to add more elements to the js...

so it can be a link like: ondblclick="ajax_call_activate(this, feature_x) return=false;" ... instead of having a activate_feature_x with deactivate_feature_x ... but hey, i know what this will be...

if you think you can help, pm me, i'd be very grateful... it can be a paid job... i know it's not complicated, but as i can not perform it properly, i ask a pro!
__________________
get some statistics for your forum, or change the look of the private messaging.
Web crawlers are important for you, use our Web Crawlers Bundle
nexia is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 06-23-2009, 12:25 PM   #2
Supporters
vBulletin Owner
vBSetup Mods
 
Cerberus's Avatar
 
Join Date: Mar 2008
Posts: 1,631
Cerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of light
Re: REQ: universal Ajax function/script to activate/deactivate

I dont really understand what you mean but here is a good read on how javascript can call functions and use multiple functions. I may be able to help you better if I understood

JavaScript Function
__________________
Cerberus / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Cerberus is offline   Reply With Quote
Old 06-23-2009, 01:15 PM   #3
vBulletin Owner
 
Join Date: Jun 2009
Location: http://vbenhancer.com
Posts: 154
nexia has a spectacular aura about
Re: REQ: universal Ajax function/script to activate/deactivate

thanks, but as you said, you do not understand what i mean, or you would have a solution already...

actually i know exactly how to deal with the code... i am just not a AJAX wizard and i want my code to be perfect... i want someone who is fluent in AJAX/vB to work it with me...

thanks for the link btw, but i'm actually way above this right now...
__________________
get some statistics for your forum, or change the look of the private messaging.
Web crawlers are important for you, use our Web Crawlers Bundle
nexia is offline   Reply With Quote
Old 07-10-2009, 04:53 AM   #4
vBulletin Owner
 
Join Date: Jun 2009
Location: http://vbenhancer.com
Posts: 154
nexia has a spectacular aura about
Re: REQ: universal Ajax function/script to activate/deactivate

description of the needed switch:

the whole thing:

HTML Code:
<div id="myswitch_container" class="alt1"><a id="myswitch_element" class="smallfont" href="*" ondblclick="return switch_ajax(this, myswitch_function, newclass_container, newclass_element, newclass_img);" title="this is my link"><img id="myswitch_img" class="inlineimg" src="*" alt="this is the img" /></a></div> 
... or something like this

1- the icon have to change on switch, not on click (wait the ajax answer)
2- the text of the icon title="" have to change on switch too
3- the switch have to be related to the object of the switch (yes/no)
4- the switch have to permit multiple clicks and activate/deactivate properly each time
5- the switch have to send back new classes for each ID when needed (check the actual class, keep it, and switch when needed)
6- as a gadget, the "process.gif" icon can be used over the img change to display the process... if the answer is "failed", the icon have to have a (/) on it...
__________________
get some statistics for your forum, or change the look of the private messaging.
Web crawlers are important for you, use our Web Crawlers Bundle
nexia is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
activate or deactivate, ajax, function or script, req, universal

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant get $username to function in my code powerful_rogue Troubleshooting vBulletin Problems 2 06-02-2009 11:54 PM
Looking to add RSS function to Zoints Topic Tag Modification SteveRobWhatever vBulletin Modifications 0 08-15-2008 11:23 PM
Looking to add RSS function to Zoints Topic Tag Modification SteveRobWhatever vBulletin Services 0 08-15-2008 11:18 PM
Please activate membership alhroob Introduce Yourself 2 03-12-2008 12:04 PM
[STOCKS] Universal URLs... mw.pmi Photoshop Tutorials 8 04-28-2007 07:07 PM


All times are GMT -8. The time now is 05:39 PM.