• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript working for chrome but not firefox

 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer eric.
but when i used your code it does call even function.
is there any alternative..?
 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic