Can anyone provide a simple use of AJAX in a vb aspx page, so I can just reload a part of the page and not have to reload the entire web page?
UpdatePanel example from MSDN would be my suggestion for what you want.
Related
Is there any way in codeigniter Pagination, such that when I click on next page in links my page should not get reload?
I am done with pagination But I am not able to solve this query.
Please Help.
Thank you
Short answer: No
Long answer: What you're asking is creating an AJAX pagination: The "not reloading page" effect is achieved when you use AJAX, that is, programming into the client side to call the server and only reload a part of the website.
That's said, if you wanted to get that, you should look for something like: Codeigniter jquery ajax pagination
I wrote a custom link in my page which created by views module, I want to click it to do something, then the page will refresh by ajax, how do I implement this?
I am sorry I didn't express myself clearly, I use Drupal 7, and the Views module to custom my own page.
You can use this module https://www.drupal.org/project/views_refresh or just use the code below in your JS to refresh the view.
$('.view-dom-id-403402eee35f68cd32fe87b45702dc63').triggerHandler('RefreshView');
Attach an event to the link, and when that is fired, execute an AJAX request.
I was wondering what is the best way to have a web page inside another page in code igniter. From the old code i'm redesigning they use iframes. Is this the best way to do it? I want to click on a button on the existing webpage, after it will do some query's and update a corresponding iframe below.
Thanks,
Tariq
This is ok to do in code igniter or any other web framework for that matter. This is more of an html question than it is a backend question. Happy Coding!
Hi Masters Of Web Development.
I have a not that simple question this time. I have got a simple external HTML page, that I want to include in my site. The HTML page contains a submit form or something like that, and I wish to send this data from the form, without to reload the whole page. So I decided to put HTML page inside iframe. But, some people said that this is older technology, google doesn't like iframes, etc. So I want to use something like AJAX or JQuery to load that external HTML page, and to send submit form without reloading the whole page with it. :)
Any suggestions on how to make this?
Thanks in advance :)
Do you really need Google to index that iframe form? If that's the only iframe you have throughout the site, it aint going to be a problem in terms of google indexing.
About using the Iframe, if you are not comfortable learning and building ajax-type form, you'll still be fine (like what Frankie commented). Just make sure the form works, usable and compatible with popular browsers.
You want to use the jQuery Forms Plugin. Its very straightforward and easy to turn any normal HTML form into an AJAX form.
In order to enable AJAX Functionality , which control is placed on the page..?
For AJAX functionality the page (i.e. it's Javascript) uses the XMLHttpRequest object.
If you're talking about ASP.NET, you'll need the ScriptManager and the UpdatePanel.
The main AJAX control that you have to add to your web pages in order to enable ASP.NET AJAX functionality is the ScriptManager control.
If you have master pages you may also use ScriptManagerProxy control.
After adding ScriptManager on to a page, you can add other ASP.NET AJAX controls on the page.
On the other side, if you are just looking for generix AJAX style functionality, you have the JavaScript XMLHttpRequest object.