Solved

Another Firefox Problem

Posted on 2009-05-20
9
467 Views
Last Modified: 2013-11-08
I have another problem dealing with Firefox 3.0, and components from the Ext JS Library 2.0.1 (http://extjs.com/).  I have modified a livesearch function from one of the Ext JS tutorials located at http://extjs.com/learn/Tutorial:Building-grid-with-livesearch-form--chapter-1 and am trying to integrate it with my WordPress website at https://www.sleepamazing.com/chiropractic/. Once again, it works perfectly well in IE8, Safari, and Mobile Safari.

I have a dynamically generated grid on a page, with editing icons in the Actions column of each row.  The icon specifically designated to edit the record uses a form to open up a popup record editor, whose form definition and image is set within the associative array used to render the grid rows (I've included the php coding for this below).

My problem is that Firefox does not even see the form, while the other browsers do.

Can anyone help me with this?
$data["actions"] = "<form name='Edit" . $data["referral_id"] . "' action='https://www.sleepamazing.com/chiropractic/?page_id=180' method='post' onSubmit='return get_popup(&quot;https://www.sleepamazing.com/chiropractic/?page_id=180&quot;, &quot;Edit" . $data["referral_id"] . "&quot;, 320, 500)'><input type='hidden' name ='popup' value='true'><a href='javascript:submitform(&quot;Edit" . $data["referral_id"] . "&quot;);'><img src='https://sleepamazing.com/chiropractic/wp-content/themes/professional/images/b_edit.png' alt='Edit this record' class='icon'></a><input type='submit' name='fakeSubmitButton' style='display: none'/><input type='hidden' name='current_user' value='" . $user_ID . "'/><input type='hidden' name='referral_id' value='" . $data["referral_id"] . "'/><input type='hidden' name='date_time' value='" . $data["date_time"] . "'/><input type='hidden' name='user_id' value='" . $data["user_id"] . "'/><input type='hidden' name='firstname' value='" . $data["firstname"] . "'/><input type='hidden' name='lastname' value='" . $data["lastname"] . "'/><input type='hidden' name='address' value='" . $data["address"] . "'/><input type='hidden' name='city' value='" . $data["city"] . "'/><input type='hidden' name='state' value='" . $data["state"] . "'/><input type='hidden' name='zipcode' value='" . $data["zipcode"] . "'/><input type='hidden' name='phone' value='" . $data["phone"] . "'/><input type='hidden' name='terms_conditions' value='" . $data["terms_conditions"] . "'/><input type='hidden' name='initial_purchase' value='" . $data["initial_purchase"] . "'/><input type='hidden' name='recent_purchase' value='" . $data["recent_purchase"] . "'/><input type='hidden' name='commission_latest' value='" . $data["commission_latest"] . "'/><input type='hidden' name='commission_total' value='" . $data["commission_total"] . "'/><input type='hidden' name='status' value='" . $data["status"] . "'/><input type='hidden' name='customer_id' value='" . $data["customer_id"] . "'/>&nbsp;&nbsp;&nbsp;<a href='javascript://' onclick='return deleteRecord(&quot;" . $data["referral_id"] . "&quot;);'><img src='https://sleepamazing.com/chiropractic/wp-content/themes/professional/images/b_delete.png' alt='Delete this record' class='icon'></a></form>";

Open in new window

0
Comment
Question by:OmniUnlimited
  • 5
  • 3
9 Comments
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 50 total points
ID: 24438375
Download developer plugin and look at the generated source
I am offline for a while. so I hope Wilq can help
0
 
LVL 17

Author Comment

by:OmniUnlimited
ID: 24438531
YEAH!  I knew you wouldn't let me down!  Thanks mplungjan for the nice tip.  That developer plugin looks pretty nice.  I am especially impressed with the generated source feature.  Sure enough, the form element is not forming for some reason, but it appears it is only happening on the very first row.  The form element appears just fine on the second.  Now, if I can only figure out where this is happening.

Oh wilq32, where are you?  I need your help so bad...
0
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 0 total points
ID: 24453299
OK guys, got it!  Wow, this is truly a learning process for me.  After I reported this problem, my problems with Firefox and Javascript just began to blossom.  I couldn't understand what was going on.  I was looking through some of EE's webpages and I came across some information about page validation.  I ran my page through the validator and you could not believe the amount of errors it found!  Anyway, I corrected all the errors (took me quite a while, I might add) and viola!  The problems with Javascript and Firefox disappeared!

I guess Firefox does not like validation errors.  wilq32, here is one for your records!

You guys have a great day!
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 18

Expert Comment

by:Pawel Witkowski
ID: 24457340
Sorry that I did not respond. I got some holidays with my wife haha ;) But if you still have more problems, well then just create next questions. If I only can  I will help you. Good to hear that right now its working ok! Good luck with coding :)
0
 
LVL 17

Author Comment

by:OmniUnlimited
ID: 24457804
wilq32, you are simply the best!  I hope you and your wife are having the greatest of times.

You deserve it! :)
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24458405
Me too :)
0
 
LVL 17

Author Comment

by:OmniUnlimited
ID: 24465282
Hi guys,

I've got another question if any of you would like to take a look at it.  It's located at http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_24435414.html.

Thanks a million, and have a great day!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24465294
How to get to the page with the issues? Login needed
0
 
LVL 17

Author Comment

by:OmniUnlimited
ID: 24465590
Hi mplungian!

How are you this morning?  Well I hope.

Username is "test".  Password is "test1234".

Thanks for taking a look at this for me! :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question