javascript: calling xajax functions with boolean parameter

by prettyscripts on 2009-06-24 10:28:46 • Leave a comment »

miscjavascriptxajax

when passing a boolean value from javascript to a xajax function, the value is converted to string in the xajax function. you need to compare the string value of the boolean value (from javascript) in xajax function. eg, the following code in xajax f… more »

Tags: boolean, javascript, xajax

wow: item tool tips

by prettyscripts on 2008-08-03 00:24:13 • Leave a comment »

javascripthtmlb2evolution

i’ve been wanting to add item tool tips to my wow blog. you know, the cool popup text displayed when you move your mouse over an item link. like how it looks in-game. the first came to mind was itemstats, which i’ve used to setup websites for my previo… more »

Tags: b2evo, itemstat, javascript, wow, wowhead

drag and drop

by prettyscripts on 2008-07-17 12:55:23 • Leave a comment »

freejavascripthtml

i was looking for drag and drop functionality / components for websites and found this javascript based library. it seems easy for simple implementation. just download the file and follow 4-step instructions. however for more advanced / complex imple… more »

Tags: drag and drop, free, javascript

javascript: trim string

by prettyscripts on 2008-03-27 11:00:41 • Leave a comment »

javascriptcode

javascript does not come with a trim function. you need to write your own. function trim(str) { return str.replace(/^\s+|\s+$/g, ''); } for other variations, check this. more »

Tags: javascript, string, trim

xajax: confirmation message

by prettyscripts on 2008-02-19 15:49:20 • Leave a comment »

javascriptajaxxajax

in v0.2.4, the command to display confirmation message is addConfirmCommands. in V0.5 it’s confirmCommands.$obj->ConfirmCommands(commands, message); where commands is the number of response commands to skip if cancel is clicked from the confirmati… more »

Tags: confirm, javascript, xajax