This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
Script injected by advanced search form tag and "id" parameter of this tag
Posted: 13 August 2008 03:15 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  285
Joined  02-02-2007

Hi,

It seems that there is a problem with the javascript injected by advanced search form tag.

Advanced search form tag has parameter “id”. This parameter allows to specify the id attribute for the <form> tag. But it seems that this id of the <form> tag is not in any way taken into account by the script which advanced search form tag injects.

The script has the function “changemenu(index)” in which there are following lines:

var theSearchForm = false
    
    
if (document.searchform)
    
{
        theSearchForm
= document.searchform;
    
}
    
else if (document.getElementById('searchform'))
    
{
        theSearchForm
= document.getElementById('searchform');
    
}

If <form> tag has the id say “advanced_search_form”, that id is not reflected in this function.

Since that script does not take into consideration the new id which may be provided by “id” parameter, clicking on any option in “Weblogs” selectbox produces javascript error.
Firebug’s error message is as follows:

theSearchForm.elements is undefined

Perhaps, this is a bug which should be filed into Bug tracker?

I use ExpressionEngine v.1.61 build 20071204

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 13 August 2008 07:31 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23528
Joined  05-20-2002

I’m replicating on the latest build.  And seems to me, id as a parameter is a good idea.  I’ll go ahead and put in a bug report.  Might not hurt to add a user note if you have the time for it.

Good catch.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 13 August 2008 01:57 PM   [ Ignore ]   [ # 2 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  15380
Joined  05-15-2004

Reported here: http://expressionengine.com/bug_tracker/bug/5022/. Moving thread to the bug forum.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 14 August 2008 02:26 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Looking at this now

Profile
 
 
Posted: 19 August 2008 11:24 AM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15833
Joined  06-03-2002

Thanks for reporting, this has been fixed for the next release.

 Signature 
Profile
MSG
 
 
 

This Question is Resolved.

If you have a similiar issue that this thread does not address, click the button below to open a new related support topic.

 
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64939 Total Logged-in Users: 56
Total Topics: 81911 Total Anonymous Users: 50
Total Replies: 440325 Total Guests: 289
Total Posts: 522236    
Members ( View Memberlist )