Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes javascript working for chrome but not firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript working for chrome but not firefox" Watch "javascript working for chrome but not firefox" New topic
Author

javascript working for chrome but not firefox

dhaval thakor
Ranch Hand

Joined: Aug 27, 2012
Posts: 53


In above function is used to swap link of click hyperlink to iframe source. it works in chrome well but in firefox and ie .?





resizeIframe(obj) function stops to work in mozila and IE while it works fine in chrome
can any one please solve my problem
it will helps me alot
thanks in advance.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What is not working, do you get errors, what happens?

You are short on the details on what is wrong.

Eric
dhaval thakor
Ranch Hand

Joined: Aug 27, 2012
Posts: 53

I am not getting error but code does not work.
In first code is for i am exchanging hyperlink address with src of iframe which works in chrome but not working in firefox and ie

in second code i am trying to dynamically increase height as per length of the frame which works in chrome fine but not in ff and ie

it give me no error.

Thanks eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I would expect the functions to be written something like this, no need to use the event object when the scope of this is the element you clicked on.



jQuery 1.7+

dhaval thakor
Ranch Hand

Joined: Aug 27, 2012
Posts: 53

Thanks for your answer eric.
but when i used your code it does call even function.
is there any alternative..?
dhaval thakor
Ranch Hand

Joined: Aug 27, 2012
Posts: 53

Thanks eric to give me support

Answer is here.

http://stackoverflow.com/questions/1473295/basic-jquery-question-how-to-change-iframe-src-by-clicking-a-link
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript working for chrome but not firefox