For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 13 replies, 3 voices, and was last updated 11 years ago by
Darshan Patel.
-
AuthorPosts
-
beknalikarRajeevMemberHi,
i want to open JQuery Dialog. can anyone help?
Regards,
Rajeev.March 20, 2014 at 1:29 pm #348191
BrandonMemberIf you just want the standard javascript use: alert(‘yourmessage’)
On a native app try phoneui.alert()
or to get creative look into the JQuery UI, example: http://www.genuitec.com/support-genuitec/viewtopic.php?f=9&t=5415March 24, 2014 at 5:26 am #348234
beknalikarRajeevMemberThanks, it is working fine. but I have one more issue.
I am trying to open the dialog onto some other component. but jquery dialog is opening behind the component. can you please tell me how to bring jquery dialog to front.
Regards,
Rajeev.March 24, 2014 at 6:15 am #348235
beknalikarRajeevMemberHI,
addition to above issue i am unable to set the values to text box in jquery dialog using JavaScript.
can you please help.
Regards,
Rajeev.March 24, 2014 at 6:43 am #348236
BrandonMemberDo you have a screen shot you can show for the dialog being behind another component?
To dynamically change the text try something like this:
$(“#textID”).html(“Hello World”);
March 24, 2014 at 6:54 am #348238
beknalikarRajeevMemberdialog behind i have google map. on top of i want to display dialog..
and for second i tried but could not able to set the text dynamically using
$(“#m1-latitudeField”).html(“Hello World”);
$(“#m1-longitudeField”).html(“Hello World123”)Regrads,
Rajeev.March 24, 2014 at 6:57 am #348239
beknalikarRajeevMemberaddition to above reply. i tried to set the the value for the dialog text using:
document.getElementById(“m1-latitudeField”).value=”Text”
Regards,
RajeevMarch 24, 2014 at 7:35 am #348240
BrandonMemberMake sure in your dialog options you set
model: trueMake sure you are calling the correct tag for your dialog div:
<div id=”dialog-div” title=”Basic dialog”>
<p>Your dialog text here</p>
</div>The above example would use:
$(“#dialog-div”).html(“Hello World”);March 24, 2014 at 10:47 pm #348274
beknalikarRajeevMemberHI,
for dialog opening script is:<script type=”text/javascript”>
$(function() {
$( “#dialog” ).dialog({
autoOpen: false,
model:true});
$( “#m1-OpenlayersTab-push2” ).click(function() {
$( “#dialog” ).dialog( “open” );
});
});
</script>and my dialog div is:
<div id=”dialog” title=”Conduit” >
<p>Latitude :
<input id=”m1-latitudeField” class=”m1-textfield m1-textfield-border m1-font-3″
value=”” type=”text” name=”textField9″/></p><p>Longitude:
<input id=”m1-longitudeField” class=”m1-textfield m1-textfield-border m1-font-3″
value=”” type=”text” name=”textField8″/></p>
<input type=”button” name=”type” value=”Submit” id=”submitbutton” onclick=”getLatlong();” /></div>
Regards,
Rajeev.March 25, 2014 at 6:21 am #348281
beknalikarRajeevMembercan you please help on this.
March 25, 2014 at 7:02 am #348283
beknalikarRajeevMemberHi,
i am able to set the values to the text box in dialog. but i am unable to bring the dialog on top of my google map.
Please suggest on this.
Regards,
Rajeev.March 25, 2014 at 9:11 am #348285
BrandonMemberEven with setting it to Modal?
Do you have it on top in the outline?March 25, 2014 at 10:36 pm #348305
beknalikarRajeevMemberYes. Even after setting modal:true also not solved. my code is looks like below.
<script type=”text/javascript”>
$(function() {
$( “#dialog” ).dialog({
autoOpen: false,
modal:true});
$( “#m1-OpenlayersTab-push2” ).click(function() {
$( “#dialog” ).dialog( “open” );
});
});
</script>and my dialog div is:
<div id=”dialog” title=”Conduit” >
<p>Latitude :
<input id=”m1-latitudeField” class=”m1-textfield m1-textfield-border m1-font-3″
value=”” type=”text” name=”textField9″/></p><p>Longitude:
<input id=”m1-longitudeField” class=”m1-textfield m1-textfield-border m1-font-3″
value=”” type=”text” name=”textField8″/></p>
<input type=”button” name=”type” value=”Submit” id=”submitbutton” onclick=”getLatlong();” /></div>
September 26, 2014 at 2:38 am #351755
Darshan PatelParticipantin dialog box, all the element uses a seperate line, how can i force them to stay on one line?
like i want a textbox and a label to be on the same line, how can i achieve this?
thanks,
Darshan -
AuthorPosts