Try putting it in quotes maybe?
On May 3, 2010, at 7:35 PM, Sriram C <[email protected]> wrote:
Hi rob,
Thanks for your response. I am using gaelyk template file.
I finally got the toggle button's value using
document.getElementById("togglebuttonid").getAttribute("toggled");
This above code gets the value of the toggle state (true, false).
I am using iui.js which is google's js library for iPhone.
I now have another problem: I want to feed this value to a href. I
am using the below code:
<a type="button" class="whiteButton" onclick="" href="up.groovy?
toggle=document.getelementbyid("togglebuttonid").getattribute
("toggled")">update</a>
When I execute this, the groovlet gets called but the value of
toggle is neither true nor false. It is "document...."
How can I coorectly pass the value to HREF. ???
Thanks
Sriram
---
Sriram C
On May 3, 2010, at 7:59 PM, RobG <[email protected]> wrote:
On May 3, 11:33 pm, sri <[email protected]> wrote:
Hi,
I have a script (.gtpl)
Is that Girdhari Telecom Pty Ltd? Global Task Priority List System?
Galien Township Public Library? Gaelyk/Groovy templates?
that has a toggle button snippet.
Seems to me you have a server process that generates web pages. If
you
have issues with that, you need to find a resource that can help you
with that particular technology.
If your issue is only with the generated pages on iPhone, then maybe
this is the correct forum. In any case, you need to post a minimal
example of the resulting code or a link to a page that has it.
Without
seeing the code, I can only guess what a "toggle button" is. It might
be a radio, checkbox or in...@type=button with some script to modify
its look to show that it is "on" or "off".
And I can only guess at what the issue might be - there are any
number
of possible reasons. Maybe you'll get lucky and someone here has an
answer, more likely you'll get guesses.
I have an
onClick=alert(message), which works fine. But if I replace alert
with
my function, it does not get called.
Show the code.
The objective is to check whether the toggle button was clicked and
change the 'ON" to OFF (if it was previously ON) in a variable.
Use a checkbox, whether it is "on" or "off" can be related to its
checked property, e.g.:
<input type="checkbox" name="cb0" onclick="
alert(this.checked? 'On' : 'Off');
">
I looked at ibm developer's site. The code there gives script
errors.
No doubt, but which bit is realted to your issue?
--
Rob
--
You received this message because you are subscribed to the Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the Google
Groups "iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en.