Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

My first post. Don't be too cruel. :)

I made some modals forms with jquery ui and they work fine: http://socarg.iiia.csic.es/svgtrees/0.php

I want to load them when the user press a node in a tree, but when doing so, I can see the code of the dialog there. To see what I mean log in http://socarg.iiia.csic.es with user:socarg and password:socarg. Then drag the tree a little to the left and press the node called Prefaci or the one called Preàmbul. Then you see at right the form instead of what you saw with the first url I pasted. BUT if then you reload all the page, everything appears as it should be, you just see the button that calls the form and no the form.

I tried and put the lines that load the scripts:

<script src="jquery-ui/js/jquery-1.9.1.js"></script>
<script src="jquery-ui/js/jquery-ui-1.10.3.custom.js"></script>

not only in the 0.php but also in the index.php, but that didn't work.

Any clue? If not any other way to do the same will be welcome.

Thanks in advance.

Update: I solved it in some way. Added the hidden style in the tag:

<div id="dialog-form" style="display:none;>

Not sure why this worked, neither why didn't before. But it seems to fix it. But at least I can go on.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.