Solved

Another Firefox Problem

Posted on 2009-05-20
9
458 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
 
LVL 18

Expert Comment

by:wilq32
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now