views:

162

answers:

3

Hi,

I was wondering if anyone has seen this issue before.

I have two button on a webpage. When I navigate away from the page and hit the back button to return the value of one button is placed in the value of the other.

E.g

<input class="SmallData" type="submit" id="logButton" value="Log In" tabindex="93"></input>

<input class="btn" type="submit" id="acBtn" value="Detailed Quote"></input>

When I come back to the page Detailed Quote replaces Log In e.g.

<input class="SmallData" type="submit" id="logButton" value="Detailed Quote" tabindex="93"></input>

There is no JavaScript causing this to happen. I look at the source everything looks fine but I inspect the DOM I can see that the there is a different value.

Is there something about how web kit handles the dom that it gets corrupted when the back button is used?

Thanks,

A: 

Mght it be because of having two submit buttons...?

Just my "random" suggestion though... :)

Thomas Hansen
A: 

Check if the same thing happens in Chrome (if you have access to a Windows box) to see if it's a WebKit issue or Safari itself.

MK_Dev
+1  A: 

Try giving each input element a name="some_unique_name" attribute -- see if that helps Safari differentiate.

kamens