Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
kimeraweb
kimeraweb's Profile
2
Posts
9
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Change cursor to wait while loading a content, after, chage cursor to default when loading content is finished.
[1Reply]
10-Jan-2013 07:10 PM
Forum:
Using jQuery
Hi all, as the tittle says, I want to change the mouse pointer to diferent images, something like:
$('#searchFor').keypress(function(e) {
code= (e.keyCode ? e.keyCode : e.which);
var nombreServer = $('#searchFor').attr('value');
if (code == 13) {
$(this).css('cursor','progress');
$('#muestraListadoServers').load('mostrarServer.php',{sname: nombreServer});
$(this).css('cursor','default');
}
});
Of course I know it doesn't work this way, but it is a graphic way to explain it.
I tried for example:
$('#searchFor').keypress(function(e) {
code= (e.keyCode ? e.keyCode : e.which);
var nombreServer = $('#searchFor').attr('value');
if (code == 13) {
$('#muestraListadoServers').load('mostrarServer.php',{sname: nombreServer});
$('#muestraListadoServers').ready (function() {$(this).css('cursor','progress');});
}
});
Thinking "When dom is loading, shows pointer like progress". But it doen't run, nothing happens.
Also I was thinking on a calling back, but I'm not sure about it is well done, because, it doesn't run, nothing happens:
...
if (code == 13) {
$('#muestraListadoServers').load('mostrarServer.php',{sname: nombreServer},function() {$(this).css('cursor','progress');} );
}
...
I try make a textbox like a "<a href" behaviour, changing css cursor by differents actions.
This is the full code:
$().ready(function() {
$('#searchFor').autocomplete({source:'printNameServers.php', minLength:2});
$('#searchFor').keypress(function(e) {
code= (e.keyCode ? e.keyCode : e.which);
var nombreServer = $('#searchFor').attr('value');
if (code == 13) {
$('#muestraListadoServers').load('mostrarServer.php',{sname: nombreServer});
}
});
});
I appreciate any help, thank you.
Autocomplete throws all results on the screen after submit from form.
[18Replies]
01-Dec-2012 12:24 AM
Forum:
Using jQuery UI
Hi, I'm trying send from a div towards iframe, a form's value and when iframe shows up, it take every value from autocomplete. I know where come from the problem, but I can't make it work in other way.
This is the code where form is, very simple:
<script type="text/javascript">
$().ready(function() {
$('#searchFor').autocomplete({source:'functions/printNameServers.php', minLength:2});
});
</script>
...
...
<form id="formSearchFor" target="mainIframe" action="mod/showServer.php" method="get">
<input name="searchFor" id="searchFor" size="25" style="font-size:9px;" type="text"/>
</form>
and here is where automplete get back the info required:
$query = "SELECT server_Name FROM servers WHERE server_description LIKE ".$dato_final;
$mk = mysql_query($query);
while ($a=mysql_fetch_array($mk)) {
$data[] = array( 'value' => $a['server_Name']); }
echo json_encode($data);
flush();
I can figure out, echo command, is responsable, but, I don´t know make work autocomplete without it.
Just when return is pressed in the form, the target looks like this:
In the target there's no code but background image.
Thank you for support.
«Prev
Next »
Moderate user : kimeraweb
Forum