Webmastersite.net
Register Log In

Refreshing edit reverts select fields

Comments on Refreshing edit reverts select fields

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 03, 2006 - 11:54 PM:

When editing a link as soon as you add an attachment the page refreshes and all the fields that are a select revert back to the default. I also had this on my other site when somebody previewed their site the select field reverted back and they of course didn't notice until I queried their selection.


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 05, 2006 - 7:10 AM:

I don't see anything reverting. I click 'edit', change the url from http://asd to http://asdfghjkl, select a file and click 'attach' and the page refreshes with http://asdfghjkl listed as the url.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 05, 2006 - 8:05 AM:

No, the URL isn't a SELECT option field. Sorry, I should've said submitting, not editing. you can see it here www.thehorsescene.co.uk/hor...ction=addlink&catid=65

I have the link type field as a drop down selection - I have manually input the options as leaving it to {TYPEOPTIONS} does not give exactly what I want.

If you select, say, club then attach a file when it refreshes the link type has reverted to premium.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 07, 2006 - 6:47 PM:

So that would be entirely down to the customization issue of using manually input options instead of {TYPEOPTIONS}. I think there's a function that can handle it, I'll find it.

<option value="blah">blah</option><option value="asd">asd</option> <,> regular

Could also be done as radio buttons with <input type="radio" name="$name <,> $options <,> $selected <,> $seperator" value="" checked>
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 07, 2006 - 10:26 PM:

Still doesn't work, but I've probably put it incorrectly!! I have...

<IF 1>
<select name="type">

<option value="premium">Premium Link</option>
<option value="recip">Reciprocal Link</option>
<option value="club">Club Link</option>
<option value="affil">Affiliate</option>
<,> regular
</select>
<OTHERWISE>
<select name="type">

<option value="premium">Premium Link</option>
<option value="recip">Reciprocal Link</option>
<,> regular
</select>
</IF>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 08, 2006 - 9:04 AM:

I don't think it can accept line breaks, try it without them.

<option value="premium">Premium Link</option><option value="recip">Reciprocal Link</option> <,> regular
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 08, 2006 - 9:59 AM:

That did the trick! Thanks Paul
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.