Hi there
Wondering if anyone can assist..
I am adding some jquery to my site, but I want to restrict some actions dependant on whether a user is logged in or not. I am unsure of how to detect the session variable with Jquery..
My initial thought was to call my checkUser cfc using Jquery Ajax and then check how many rows where returned...
I think it's a common problem but I can't find any solution about this.
For example: I'm building a AJAX Web system using Jquery(client js) and php(server side). All the ajax requests are sent to index.php, which checks if that session is valid or not. If the session is not valid, server side's php will output the login page; if the sess...
I have a div which contains an unordered list... After some user actions i load the div with a longer list i.e. containing more list items than the previous one. I use jquery's higher level ajax functions to do this.
The problem is when i load it through ajax the list elements overflow the div's bottom portion and some of them get's di...
i have 3 tabs at top of page i.e
home | profile | +
now i want that user can create their own custom page while click the (+) icon/button...!! how can i do that with php ajax
...
Hi,
I am getting "500 Internal Server Error" when I used ajax call. What is causing this problem? How to resolve it?
...
hi i'm using the maskeditexdenter for getting money value ,the problem is when the input is given it takes it from left to right i want it to take it from right to left. the code is
<asp:TextBox ID="txt_actual_ConveyanceCharges" CssClass="Controls" runat="server"></asp:TextBox>
<ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" r...
here's my code with jquery:
function check_hotel_exists(value, col)
{
var url = base_url + 'ajax/checkuniquehotel';
var response = false;
$.get(url, {hotelname:value}, function(data){
if (data === 'true') response = true;
});
alert((response) ? 'Hotel is Not Existing' : 'Hotel Exist...
Hi,
I am running Apache server. When I send the request from HTML using ajax call to cgi, I am not getting any response.
I found the following error statement in the httpd/error_log file:
Premature end of script headers: file.cgi
When I gave alert to the status code, it returned 500 Internal Server Error.
How to resolve this?
...
I would like to learn how to achive the following with the other two functions, or at least the ajax function.
$('#myDiv').load('index.php #content');
How would I load #content in the index.php file, into #myDiv on the current page with the $.ajax and $.get methods?
The url param doesn't seem to take a selector with any other ajax me...
Error: invalid regular expression flag
b Source File:
http://localhost/media/javascript/global.js
Line: 4, Column: 19 Source Code:
url: /home/blog,
$("#blog").click(function () {
var url = $(this).attr("href");
$.ajax ({
url: /home/blog,
type: "POST",
success : function (html) {
$("#someDiv").appe...
Hi
i am trying to pass an array to ajax.Here is the code (productOptions is the ARRAY)
data: { action:'add',tblID : tblID, option:productOptions},
as far as i know whith this approach (using objects) jquery do the job BUT i dont get the option parameter at all (EXPLAIN BELOW).
NOTICE :
var productOptions=new Array();
productOp...
I am trying to build some sort of logger functionality in JS. Is there any API for getting its own filename?
...
Hi all,
I have yet another JS issue ...grrr. Bear with me, I am a hopeless JS newbie.
I am receiving "missing ) after argument list" error in firebug with the code below:
<script type=\"text/javascript\">
function add( answer )
{
$.post('../page.php?cmd=view&id=3523', {user_id: 3523, other_user_id: 2343}, function(d)
$(...
Hello,
I have this code to try and call a method from my controller in codeigniter,
$("#Blog").click(function () {
var url = $(this).attr("href");
$.ajax ({
url: "index.php/home/category",
type: "POST",
success : function (html) {
$("#right-content").append(html);
}
});
}...
Hi Everyone, I have some java script that work behind a navigation menu, the user clicks the nav button, and some AJAX fires and brings in some HTML, what I want is for if that same link is clicked again then the content that was loaded in by that specific button is removed from the markup.
Does anyone have ideas? My code currently stan...
Here's an example app that I built to demonstrate my problem. A single aspx page with the following on it:
<form id="form1" runat="server">
<asp:ScriptManager runat="server" />
<asp:Button runat="server" ID="btnGo" Text="Go" OnClick="btnGo_Click" />
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:...
Hi - I have a panel that has a HoverMenuExtender added so as to produce a sort of dropdown menu and my problem is that for a second when the page is loading you can get a glimps of the links in the menu.
Any tips out there on overcoming this flashing of the menu items when the page is loading...
<!--Hover-menu-1 -->
<div id ="hoverMenu1...
My userscript's task is fairly simple -to listen to XHR requests via an XHR bridge sort of functionality, manipulate the data received, and return it back. Everything happening transparently, of course.
I came across this reply (http://stackoverflow.com/questions/629671/how-can-i-intercept-xmlhttprequests-from-a-greasemonkey-script/6297...
I have a html form. I want to take the input value (a url), extract a number from the url using regex ( '/[0-9]{5,}/') , and then refresh the form value with the number extracted and appended to another url. If I can't find a number - I just want an error to appear in the form box. All using Jquery to avoid page reload.
This is the ex...
Hi all,
I am using AJAX toolkit controls like DragControlExtender, AccordianPane etc on my page.
I am plotting the Accordian Div on the map. Now on click of a button I want an another div (draggable, regardless through javascript or by DragControlExtender) should be visible and draggable. It should remain on the top of the google map b...