Unknown issue within jQuery.dialog() and $.get() method (dialog don't show text)
I have a jquery project with a piece of code such as I wrote in down of this message.
Problem is I need to click to the link
twice to text from get() method is appears on the dialog.
Why so serious?
(click once to second button from down, if you're not Russian) and go to any non-grayed subcategory.
For example, if you're clicked second link in first row, you will see an empty dialog with a header. There is one way to place text into it is close and click to the link again - then, text will appear immediately.
I tried to change code to except get() method, but only .html('123') is same.
What can I try to fix it?
Thanks and sorry for my english.
- function dwnPrice(i) {
- obrab=false;
- if (i=='outs') {
- obrab=true;
- $("#price-base").dialog("destroy").dialog({width: 950, height: 600, resizable: false, modal: true,
- create: function() {
- $("#price-base").css('overflow', 'auto');
- $.get('http://avidiss.ru/Service.htm', function(e) {$("#price-base").html(e);});
- },
- });
- };
- if (i=='zip') {
- obrab=true;
-
- $("#price-zapravka").dialog({width: 650, height: 600, resizable: false, modal: true,
- create: function() {
- $("#price-zapravka").css('overflow', 'auto');
- $.get('http://avidiss.ru/Zapravka.htm', function(e) {$("#price-zapravka").html(e);});
- },
- });
- };
- if (i=='rempc') {
- obrab=true;
- $("#price-rempc").dialog({width: 800, height: 600, resizable: false, modal: true,
- create: function() {
- $("#price-rempc").css('overflow', 'auto');
- $.get('http://avidiss.ru/RemontPC.htm', function(e) {$("#price-rempc").html(e);});
- },
- });
- };
- if (!obrab) alert('Coming soon!');
- return false;
- };