Problem with showModalDialog when postback! - showmodaldialog

Dear all! I use showModalDialog to display form get data. When click button to postback server, IE auto open new window. Anh when choose data, it has close, but popup don't close and return value. Please held me. Thanks all!
Best regard.

#sibe,
Please add <base target="_self" /> tag in 'head' part of your dialog page.
Regards
Lalit Dwivedi

Some times target=self is not handled properly because of response.write statements in the code file,try removing them and try again

Related

Part of background image showing below footer - Help please

I created a custom page for my ecommerce store and I noticed that part of my background image is showing below my footer. It is only happening on this page so I assume there is something wrong with my new page. Anybody have any answers as to why this is happening? Thank you!
Here's the page... http://www.mmatopsupplies.com/brands/
I didn't investigate long enough to see why it's happening, but a quick fix is adding the following css to your footer.
#ContainerFooter {
margin-bottom:-20px;
}
Alternatively, you could add the css to your .container.footer class. Hope that helps!

Foundation tabs don't work in modal when using ajax

I took the basic tabs html at
http://foundation.zurb.com/docs/components/tabs.html
and used it as an Ajax response.
In my index.html I have the following:
<a href="ajax/endpoint" data-reveal-ajax="true"
class="button" data-reveal-id="myModal">Login</a>
<div id="myModal" class="reveal-modal" data-reveal>
</div>
The modal comes up with the tabs, but they do not work, I cannot switch between tabs.
Any clues on what might be wrong?
Thanks in advance.
I got into a similar type of problem. It was with buttons that revealed a modal. I called button via Ajax Request and when they were clicked nothing happened.
I resolved my issue using the jquery that is intended to be used at bottom of the page to activate objects after loading.
$(document).foundation();
Use this code just after you place the responseText in your HTML. And you would be able to switch between tabs.
Hope this would help you too. Please give a feedback about the result.
I am not sure which version of Foundation you are using?
In Foundation 4 it is sections,
If you are using Sections in a Modal, or they are being loaded via AJAX, or they are hidden when Foundation is initialized, you will need to reflow the sections to get tabs to display properly:
$('#myModal').on('opened', function () {
$(this).foundation('section', 'reflow');
});
http://foundation.zurb.com/docs/v/4.3.2/components/section.html You will see the above note in the bottom of this link.
i didn't see the any note about this in foundation 5 doc http://foundation.zurb.com/docs/components/tabs.html
I had a very similar problem except for the part where you display your tabs in a modal. chinmayahd's answer helped my problem BTW.
I placed $(document).foundation('reflow'); inside the success option when calling ajax in order for foundation to work after page load. Like this one,
$.ajax({
url : 'your/url/here',
success : function(data) { // data holding HTML markup of tabs
$('div#content').html(data); // tabs are displayed here
$(document).foundation('reflow'); // perform foundation reflow
}
});

Joomla Editor form action target="_blank" truncated issue

While i was inserting a form into an article in Joomla, i had to place the forms target attribute as target="_blank" so that when the user submits the form, the form submits to a new page.
But as per Joomla's default configuration everything including form's markup went into the article html data except for the attribute target="_blank".
The editor used during the issue was Tinymce.
I'm trying to fix this issue without having to edit the source code in javascript or php.
I'm hoping for a quick fix from the Joomla's configuration somewhere.
Thanks everyone for the support.
Finally I got it figured out, without even having to change one single line of source code.
The issue was indeed by the extended valid elements options of the tinymce editor to be used.
But in Joomla, the tinymce plugin does allow to handle it from the plugin backend.
Goto Joomla plugin manager => Editor- TinyMce
Under the right Plugin configuration options, you can see at the bottom the configuration option:
Extended Valid Elements
There you can add the values
form[action|accept|accept-charset|enctype|method|target] & click save/apply.
Add the target="_blank" anywhere in your article html code & it will not be trucated anymore
:)
Cheers
I hope this helps someone who stumbled on this issue.

What events trigger in Safari when a page is entered via the back button?

What events trigger in Safari when a page is entered via the back button? I've had help from others today but I've tried body onload, doucment.ready, pageshow but none of them work.
It's the last thing to sort on this build and I'm desperate to sort this out.
Check the referrer:
http://www.netmechanic.com/news/vol4/javascript_no14.htm
But I think you'll need a server-side language more than Javascript; see
http://www.programmersheaven.com/mb/java-script/147413/147413/detecting-that-browser-back-button-was-clicked/

facebook-ish like iframe in ajax

Can anyone here expand on how I can create a frame within a page, like facebook has (when you click on a user's profile and your not friends with him, for example) in AJAX, or even better - does anyone know a framework that would do the AJAX dirty work, with me writing in PHP?
Something like
$frame = new iframeObject;
$frame->setType('a');
and so forth?
Thanks!
Assuming that your refering to the Modal dialog boxes then check this out...
http://www.84bytes.com/2008/06/02/jquery-modal-dialog-boxes/

Resources