Hi, here's the markup in question:  In this case it (id=submitbtn) is a 
type=button, but it seems to be doing the page refresh in anyway.

<div id="addOfferDialog" class="modal hide fade"><div class="modal-header"> 
<button 
type="button" data-dismiss="modal" aria-hidden="true" class="close">
</button> <h3 id="addOfferDialogLabel">Create A New Project!</h3> </div> <form 
id="newProjectForm" class="well"> <div class="modal-body"> <label>Project 
Name</label> <input type="text" placeholder="Project Name" name="projectName" 
class="span3">... </div> <div class="modal-footer"> <button class="btn">
Close</button> <button id="submitbtn" type="button" class="btn 
btn-primary">Sign 
Up!</button> </div> </form> </div>
On Monday, December 17, 2012 2:45:26 PM UTC-5, Sherbrow wrote:
>
> Hi.
> You are most probably using a link or a button to close the modal.
>   If it is a link, check that the url in the href attribute is something 
> like "#".
>   If you are using a button, chech that it is a type="button" because it 
> may submit the form it's in, the type="button" would not do that.
>
> You could also try to intercept this "loading" event, but this is very 
> case specific, and we would need more info on your markup.
>
> Regards.
>
> On Sunday, December 16, 2012 11:50:44 PM UTC+1, erich oliphant wrote:
>>
>> Hi, I'm using Bootstrap for an app, and I've noticed that regardless of 
>> 'declarative' setup or if it's done via JS code, when you close a modal 
>> window, the parent window that launched it is reloaded.  I don't see 
>> anything in the docs about overriding or disabling this behavior.
>>
>> thanks in advance.
>>
>

Reply via email to