473,507 Members | 13,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

script tag hack

CODE at: http://pastebin.com/588862

Hello,

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
undefined.

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
same results.

Is there any solution to overwrite the function and works in IE and
FIREFOX?

Thanks

Mar 7 '06 #1
1 1303
mi****@gmail.com wrote:
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
http://www.jsfromhell.com
Mar 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2400
by: vincent wehren | last post by:
Hi, as a small capabilities demo I coded the piece below to show how to use Python for cgi'ing on localhost and it more or less does the trick :-). However, I when I freeze it with py2exe,...
6
7703
by: chuck amadi | last post by:
Hi , Im trying to parse a specific users mailbox (testwwws) and output the body of the messages to a file ,that file will then be loaded into a PostGresql DB at some point . I have read the...
3
1592
by: Christopher Benson-Manica | last post by:
I appreciate all the responses to my earlier post about accessing named elements. However, I'm still wondering about my actual problem, which is that I need to initialize some arrays of named...
7
2304
by: Thorsten Kampe | last post by:
Date: Fri, 23 Nov 2007 19:35:21 -0000 Message-ID: <MPG.21b13bd5fda74bd3989729@news.individual.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit...
5
3263
by: camphor | last post by:
hi, I have found an upload script in hotscripts and have implemented it into the website, I followed the installation steps to 'give write permissions to php on the upload folder (which is...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.