JQuery :: Image Processing For IE Navigators?
Sep 3, 2009
About images, when an image is resized into Firefox ; the image seems to be clean ( ex : 150x150 to 130x130 ). Into IE , the same image is very bad , IE do nothing to treat this image. Maybe Jquery can do that ? In php I know how to do this but it's for too many images with differents sizes ...
View 2 Replies
ADVERTISEMENT
Jul 22, 2009
I am trying to design a system that allows users to draw on a whiteboard with different colors, save their drawing into hidden input boxes in the form on the page, then they can click Save Logo to save it to process it through PHP. I have the whiteboard that allows them to draw, but I am lost as to how to get the thing to populate the hidden input boxes.
So, I have the following code:
<HEAD>
</HEAD>
<BODY>
[code]....
What I am trying to do is use the function mousedown(e) to include an event to update a hidden input box with the value of the TD's background color that the hidden input field is attached to, so that it can be tracked when the user hits Save Logo at the bottom of the page. When they hit Save Logo, I want the form to post to itself, go through each of the input hidden fields and capture the color for each table cell, then generate an image based on the generated array, save it to a file on the server with the user's $_SESSION['userid'] as the filename + .jpg.
The problem is, though, that I do not know how to tell JavaScript to do this in the function mousedown(e) code. Also, look in the function table_create and see if I am naming the hidden input boxes correctly; not sure if it will generate the wanted result.
Just a note: I can handle all the PHP handling of the form, I just need help with the Javascript.
Edit: I attached the entire script/page to this post because so many functions rely on each other to operate, and I'm not exactly sure which function will need to be modified to get the desired result. Also, you can copy the code to a .php file to see what it looks like (as that may assist in demonstrating exactly what I'm trying to do, visually).
Edit 2: I suppose what I need to find is how to get the JavaScript to assign a value to the hidden input field that has the same id as the TD field that it needs to be linked to.
View 3 Replies
View Related
Jun 22, 2009
This is my first time using jquery and Ive designed a small and simple fadein/out script that acts as a rollover on this navigation bar: [URL] Here is the code:
$(document).ready(function() {
$(".navbutton").not("#active").hover(function(){
$(this).siblings(".rollover").fadeIn(300);
},function(){
$(this).siblings(".rollover").fadeOut(300);
});
});
It works great. However, if a user quickly moves their mouse over the nav buttons and repeats the process, the rollover affect will fadein/ out over and over again until its completed the cycle the amount of times the user moved the mouse over the button back and forth. I wish to change this behaviour so that, somehow, the processing is aborted if it is noticed the mouse is not present after a fadeout is completed.
View 8 Replies
View Related
Jun 16, 2010
Can the UI dialog be used for this?
View 1 Replies
View Related
Jan 21, 2010
I try this sample [URL], where data is procesed on server. I prepare tables in DB and data. and nothing isn't displayed in datable? Then I create same server_prcosing php and I checked syntax from php it was OK same as json, but jquery.datable did not process any data on screen.
source:
style type="text/css" title="currentStyle">
@import "css/demo_page.css";
@import "css/demo_table_jui.css";
@import "css/smoothness/jquery-ui-1.7.2.custom.css";
</style>
<script src="lib/jquery.dataTables.js" type="text/javascript" language="javascript"></script>
$().ready(function() {...
$("#example").dataTable({
"bProcessing": true,
"bServerSide": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "SearchForms/server_processing.php"
});
});
View 5 Replies
View Related
Apr 28, 2009
i might be tired right now but I cannot seem to figure out a good way to show an alert before processing a form, the form is not processed using AJAX, just passed on to a PHP script I might however want to implement AJAX when processing the form, hmmm, maybe that will sort me out then I guess /pär
View 4 Replies
View Related
Jun 2, 2011
In our application we have used json data and we get json data from the server and on client side we display in grid. We have functionality of paging and filter. so on paging and filtering we process that json data and show to user. For filtering we are comparing each value to the filtered criteria and when json value is more thatn 35 kb it takes around 8-10 second to filter it. So is there any way that we can minimize the processing tiem.
View 1 Replies
View Related
Dec 24, 2010
I have the following (valid) json string:[code]Using firebug, I can see that the GET is returning the entire json string. However, alert only results in one of the two "text" strings being displayed ("and again"). Analyzing the watch/stack window shows that the "json" object resulting from the getJSON call has been reduced to a single "chat" element, instead of both "chat" elements present in the array.
View 1 Replies
View Related
Oct 13, 2011
I have a form that has two input buttons. One of the input submit buttons is being used to delete data from a database. Whenever a user clicks that delete button I am trying to make it so that a confirmation message appears that confirms that the user wants to carry on with the action. Then if they click Ok, the form should continue processing otherwise it will fail.
<form action="<?php echo $_SERVER['php_self']; ?>" method="post" id="data" name="data">
<fieldset>
<table>
<tr>
<th>Check</th><th>Id</th><th>Added</th><th>Method</th><th>Host</th><th>Port</th><th>Time</th><th id="shell">Shell Location</th>
[Code]...
Currently, the confirmation message works great but I can't get the form to submit once I click.
View 4 Replies
View Related
Jul 25, 2011
i have something questions. how can i select element from another page for processing data. ex : #myname.value from content.php and i will process that value to the process.php.
View 2 Replies
View Related
Oct 10, 2011
Is there any way to display "Processing" message, by default, in the iframe triggering by jQuery from the parent window? IFrame is runing CURL function and with PHP 5.2 I can't display any message there so I need to have there something by default.
View 2 Replies
View Related
May 10, 2011
I have a problem with processing the radio button to show different data.
[Code]...
View 5 Replies
View Related
Jul 19, 2011
first time up for Ajax Form plugin and AjaxSubmit. Simple test everything worked fine. However as the design has developed some strange behaviour is happening adn I dont really know where to start. The scenario is a pretty simple form validation and then insert or update of a new user record. I should mention that the tests all relate to New User records only (Inserts) no test as yet for existing users.
3 different outcomes. Tested in the PHPEd IDE with embedded IE: inserts a MySQL record correctly but supposed to remain on the page with the original submit. instead the redirect is to the PHP Server side script page - action="ajaxresponders/process_user.php" the echoed output is as it should be. Tested in the PHPEd IDE with embedded Firefox: The insert is processed correctly however the page never completes it shows connecting/waiting for localhost forever.
Tested outside the IDE on local server. With both Firefox and IE the PHP script is processed twice resulting in two seperate inserts of the same data from the form although with different userID (auto increment) and activationKey which is generated in the script prior to the insert!!!
[Code]...
View 2 Replies
View Related
Oct 21, 2009
I am looking for sample/ implementation ASP.net with Jquery.My requirement is I have web form with some controls, once the user click on submit, entire form should Grey out with message as processing .... once the database successful, successful message should bedisplayed and if user clicks on close on message the message should be closed and form needs to be cleared or some thing like this.
View 1 Replies
View Related
Jun 20, 2010
I have a database site I am currently designing, and would like to use a single page with forms in external html documents to undertake admin tasks (eg. add/remove records etc.)
I have managed to successfully load the form html into the necessary div using the $.load function, however, when I try to process the form, with this code:
$("#add_form").validate({
debug: false,
rules: {
maker: "required",
[Code]....
which asks 'process_form.php' to process the data, it doesn't seem to send the data in the form to the page. to confirm this, and whilst trying to get the system to work, the 'process_form.php' consists of 2 lines,:
echo $_GET['maker'];
echo '123456';
(ie. one line to return a string literal, and one line to return one of the variables which SHOULD be passed by the form)
This results in just the 123456 string being returned.
I have tried several things: loading the script above in the head of the 'parent' html page (ie. which the form is loaded into); - does not properly fire at all;
loading the script 'in-line' in the imported html - this leads to the result given above; running the script in an external script.js file through an onsubmit directive on the form...does not appear to properly fire the script.
View 4 Replies
View Related
Jul 23, 2005
Here is an img specification
<IMG SRC="https://my/current/location/file.gif" name="Pt2" width="15">
I would like to use a .css specification, to allow me to stop
hard-coding that location in all my files. I can't seem to find the
correct .css incantation for this.
View 10 Replies
View Related
Jul 28, 2009
I am new in php.
I want to show every row one by one during processing with check icon in the right side from row 1 up to row n? code...
View 5 Replies
View Related
Apr 24, 2002
I want to process a form with java script to check values of fields, etc and then have it format that dooment nicely for it's submission. in the book that I have that briefly touches on javascript, it says that newline characters(/r, /n) vary depending on the OS. Is this true? Is there any easy way to get around this without asking what OS they are running?
View 2 Replies
View Related
Oct 12, 2005
I wish to carry out standard form validation (i.e. is it a date?, is
there a value in the field, is it a number) using the onBlur event
rather than the onSubmit event. This (of course) leads to problems when
cancelling an edit as leaving a field to press the cancel button will
trigger the onBlur event and therefore the field validation. Is there
any way to know the destination field / button that caused the onBlur
event? In Ingres ABF/W4GL (mid eighties language of similar
functionality to javascript) there was an available attribute called
the targetfield so the code could run...
onBlur myfield =
{
if (targetfield != CancelButton) {
carry out validation
}
}
Is there something similar in javascript or will I have to program
round the houses i.e. onBlur records which validation to run and
onFocus runs the validation (unless it's a cancel button)?
View 5 Replies
View Related
Oct 20, 2005
I'm loading an XML file which has a processing instruction
(<xsl-stylesheet href="..."/>). I need a cross-browser solution which
will load the XML file and have it's XSL PI run and translate the XML
to genereate the desired output.
View 3 Replies
View Related
Jul 20, 2005
Is it possible to use JavaScript to apply different actions to a form
depending on a value within the form (eg sending form data to
different cgi scripts depending which radio button is checked)?
View 1 Replies
View Related
Aug 21, 2000
I forget how to parse the variables passed on the URL like this:
<A HREF="http://www.mysite.com?bla="blahhh"" TARGET=_blank>http://www.mysite.com?bla="blahhh"</A>
How would I check this for a value and add some code to a page if it is equal to this value?
View 2 Replies
View Related
Nov 27, 2010
I want to create a form that allows users to enter comments about a currently playing song. I want to pass the "song_id" and textarea input to AJAX for further processing (calling a php file that updates mysql). So far I have an ajax function
[Code]...
View 3 Replies
View Related
Sep 18, 2004
I have a snippet of javascript to check and make sure all the fields in a form are filled in. If they aren't then it shows an alert box telling you to put something in that form. If all the fields are filled in then it submits the form. That piece of code is this:
Code:
function checkFields() {
var errors = "no";
if(document.street_team.email.value == "") {
alert("Please enter an e-mail address..");
errors = "yes";}
if(document.street_team.name_first.value == ""){
alert("Please enter your first name.");
errors = "yes";}
if(document.street_team.name_last.value == ""){
alert("Please enter your last name.");
errors = "yes";}
if(document.street_team.loc_state.value == ""){
alert("Please enter your state.");
errors = "yes";}
if(document.street_team.loc_city.value == ""){
alert("Please enter your city.");
errors = "yes";}
if(errors != "yes"){
document.street_team.submit();}
}
Then i used a button to start the script. That code is this:
Code:
<button onClick="checkFields()">Join</button>
The problem is that if you don't have something filled in and the alert box pops up, once you click "ok" it still processes the form. Any ideas on how to keep it from doing that?
View 4 Replies
View Related
Apr 5, 2001
i have a form like this on a page called emailform.htm:
<form method="post" onSubmit=NewWindow()>
<H3>From: <input type="text" name="from"></H3>
<H3>Message: <input type="text" name="body"></H3>
<input type="submit" value="Send the Message">
</form>
when submitted, it calls this function:
function NewWindow(){
window.open('sendmail.php', 'newWin', 'scrollbars=no,
toolbar=no, width=200, height=200');
}
two problems:
1. the form values are not getting passed over to sendmail.php.
2. after the popup window pops up and loads sendmail.php, the original page, emailform.htm, changes to an error page.
so, what do i need to do to get the form values to be passed, and how do i keep the original page either from changing at all, or, if thats not possible, get it to simply reload itself.
View 3 Replies
View Related
Jun 24, 2007
In the following code I am trying to print out the value of document.body.onclick from javascript:
<BODY onclick="alert('ok')">
...
<script type="text/javascript">
alert(document.body.onclick);
</script>
...
</BODY>
However, the alert in Javascript code prints out "undefined" when I open this page and not the actual value of onclick.
View 1 Replies
View Related