script tag hack
CODE at: http://pastebin.com/588862
I'm new in this newsgroup and i hope you can help me.
I have an external function that changes depending of some information,
i'm developing an ajax app and i want to overwrite this function
depending of the user actions.
I'm making some tests with the next results:
function nuevafuncion(): works in IE but for firefox the object is
function nuevafuncion2(): if i don't regenerate the link (as in
nuevafuncion() ), IE nor FIREFOX doesn't recognize the new function
function nuevafuncion3(): using DOM standard, now works in FIREFOX
correctly but not in IE, there are some ways commented and all with the
Is there any solution to overwrite the function and works in IE and
Re: script tag hack
> CODE at: http://pastebin.com/588862
Your example is looking strange, I just read some pieces and you should
have written it in English :]
> I have an external function that changes depending of some information,
> i'm developing an ajax app and i want to overwrite this function
> depending of the user actions.
This is what I understand by overloading a function:
<URL:http://jsfromhell.com/classes/overloader>, but it seems that you
want to overwrite (or create new functions???), not overload at all.
Anyway, try to not use this technique of setting innerHTML/adding a
script node, if you need to parse code in a string, use the eval.
I didn't looked well, but it seems that you don't need to use eval.
Jonas Raoni Soares Silva
|All times are GMT. The time now is 10:31 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.