Is there way to change charset when I request page by $.ajax?
Anybody?
On 26 апр, 03:37, Colonel wrote:
> Is it possible ti use jQuery or JS in file which I get by $.ajax?
>
> For example, I have a file like this file.php:
> Some text ...
> Some text ...
> Some text ...
>
> - use JS ???
>
> $("my_conta
Is it possible ti use jQuery or JS in file which I get by $.ajax?
For example, I have a file like this file.php:
Some text ...
Some text ...
Some text ...
- use JS ???
$("my_container").html("Some text ..."); - use jQuery ???
?>
And I use $.ajax from main_file.php:
$.ajax({
typ
How I can check that jQuery is installed (worked)?
Another words check the string in section.
ill be shared between the ajax page and the calling
> page. So, if you log in the user somehow and store a session variable
> that indicates they are logged in, just check that the appropriate
> variable exists.
>
> On Apr 23, 8:30 pm, Colonel wrote:
>
> > For example I
For example I have a page: http://mysite.com/content/index.php.
On this page I use $.ajax:
$.ajax({
type: "GET",
data: "data=123456",
dataType: 'html',
url: "temp.php",
error: function(msg) {...},
success: function(msg) {...},
complete: function() {...}
});
where temp.php - http://m
Anybody ???
On 23 апр, 04:26, Colonel wrote:
> How I can get content from remote file by $.ajax?
>
> For example I have some file temp.php:
>
>
>
> Test file
>
>
>
> $id = isset($_GET["ID"]) ? $_GET["ID"] : "";
> $n
text in div header
> $id = isset($_GET["ID"]) ? $_GET["ID"] : "";
> $number = isset($_GET["NUMBER"]) ? $_GET["LOT_NUMBER"] : "";
> echo "id =" . $id . "";
> echo "number = " . $number .
How I can get content from remote file by $.ajax?
For example I have some file temp.php:
Test file
id =" . $id . "";
echo "number = " . $number . "";
?>
Some text in div header -
Some text in header2 -
and Am using $.ajax:
$.ajax({url: 'temp.php',
data: "ID=1&NUMBER
, load is
> normally the way to go, unless you're looking to place the loaded file
> before, after, or in between elements rather than inside a placeholder
> element.
>
> On Apr 22, 5:50 pm, Colonel wrote:
>
> > Is there another way load HTML from a remote file and inject it into
> > the DOM (instead of $.load)?
ple content only from div with id=header2 ?
On 23 апр, 02:26, James wrote:
> I suggest using the $.ajax() function instead of $.load() as it'll
> provide you more options, including success, error and complete (after
> success and error callbacks are executed)
>
> http://docs.j
Is there another way load HTML from a remote file and inject it into
the DOM (instead of $.load)?
Is the there way to check ajax request is complete for success?
On page: http://docs.jquery.com/Ajax/load#urldatacallback about
callback (Optional): The function called when the ajax request is
complete (not necessarily success).
ssage: "<h1>Remote call in progress...</h1>"});});
$("#no").bind("click", $.unblockUI);});
// -->
What can I do?
Thanks.
On 18 апр, 19:50, victorg wrote:
> It should work. Have you tried it like this?
>
> $(
Hi all, I have 2 divs. How I can merge this 2 divs (first div I have
after $.load like this $("#div1").load("file.php")) by jQuery?
I was trying .append, .appedndTo, but it's not working. May be Am not
properly trying.
$("#div2").append($("#div1"));
$("#div2").append($("#div1").html);
$("#div2").
8 апр, 16:35, victorg wrote:
> Where in your code are you trying to do this?
>
> You should use it like this: $("#content").appendTo
> ("#itemwherecontentneedstobeappendedto");
>
> On Apr 18, 12:42 pm, Colonel wrote:
>
> > Hi all,
>
>
Hi all,
how I can add content from div to div?
For example, I have code:
..