Put Transparent Layer That Disable Page Element At The Time Of Processing Ajax
I have made web page in php with the help of ajax and javascript. I want to do whenever page processing for ajax for that time I want to put some transperent layer that will disable the back pages element.. I have seen one site but I dont remember.
View Complete Forum Thread with Replies
Related Forum Messages:
PHP (GD) Created Transparent PNG: AlphaImageLoader Makes Black Parts Transparent Instead Of Transparent Color Set With PHP
I have a problem with PHP (GD) created transparent PNG and Microsofts AlphaImageLoader. You will immediately see what the problem is if you view http://www.useful-scripts.biz/test/.../transpng_2.php with IE 7 or Firefox and then with IE 6. It seems that the AlphaImageLoader works correctly on a PNG image that has been created with an image processor and then uploaded, but not with a PNG image created with PHP. It seems to ignore the transparent color set with PHP and instead to render the black color transparent. The image in question was created using this code: <?php $source = imagecreatefrompng("parrot_orig.png"); $transp = imagecolorallocate($source,255,0,0); imagecolortransparent($source,$transp); imagefilledrectangle($source,15,15,70,70,$transp); imagepng($source,"parrot_php.png"); ?> The HTML used on the page is this:
View Replies !
Enable/disable Html In Form Processing
I've got a form, where it submits some info and adds it to a txt file. The file is then displayed on the front page of my site; however, there is a security problem i'd like to fix dealing with html. How would you go about disabling the use of html in a form?
View Replies !
Reducing Processing Time
I've written the page below which creates a table of sales figures from an sql database, unfortunately the way I have written it if someone has 40 customers the database hase to run about 520 select queries. Can anyone see a more streamlined way of doing this? What I am basically trying to get is a table with these columns: Customer ID, Jan, Feb, Mar, April, May ..... Dec, Year-To-Date Under the YTD and month columns there is just a quantity and total value. Anway here's the code if anyone can help I'd appreciate it as every time someone has a look at their sales page the whole webserver locks up! Code:
View Replies !
Reloading Pages Using Ajax Automatically After A Set Time
i have a page and i want to load an html page into the a <div>, i found a script to do that, however i am looking for a script that allows me to load html into a <div> in my page and reload it after every 30 seconds automatically. Just to reload reload the page every 30 seconds in the ajax way...
View Replies !
Is It Possible To Disable A User From Viewing A Page After They Submit A Form
I have a forgot password form that allows a user to submit their email then a link to a page to reset their password is sent to that email. On this page I have them submit their email and enter in a new password which works fine. But is there any way I could disable this page so the user cant get access to change their password again unless they submit another request to change their password. In other words, I want them to use that link only once and thats it.
View Replies !
Add Element On The Page
I'm creating a web page to allow the user to change their web page by filling the form. In my form, I use JavaScript to change the properties on their page at the iframe in the same page on my form page. I know Javascript is the client programming, that can change the content of the file in server. I also use PHP to handle to change the content of file (web page) in server. It is not difficult to change the properties on the page at the iframe, however, if i want to allow the user to add element, let says adding a paragraph below the paragraph is existed on the page. How can I add more elements(image, link, heading...etc.) on the page or any function can do so?? How can do it in screen (change the visual page) maybe by JavaScript and how can change the content by using PHP?
View Replies !
Processing Radio Boxes And Hidden Form Fields At The Same Time
I have a form that needs to be checked. It contains 4 radio boxes a submit button and 4 different hidden fields. How do I get my php script to check if a radio box has been selected and tell the user to check a radio box if he hasn't? The script I am currently using doesn't work; if the user chacks some thing then it proceeds as usual, but if it is left blank then the program freezes up and nothing is displayed apart from the stuff outside the <?php?> tags.
View Replies !
Add A PHP Element To An HTML Page?
I have a .htm page on which I want to add a PHP script that will display links depending on if the user is in session or not. I'm not sure if this can be done on a strictly .htm page, but hey you only live once right? Here's the script I'm attempting to execute: <? if ($_SESSION['auth'] == "yes"){ ?> <a href="/index.php?page=sign_in">Sign In[/url] <? }else{ ?> <a href="index.php?page=logout">Logout[/url] <? } ?> The problem is that I don't know all the back-end php coding for the 3rd party s/w I'm using, but since the design calls for a "main .htm page" that displays all the "include" pages, having 2 links displaying on the same page seems silly (1 link for login and anohter for logout).
View Replies !
Ajax Per Page Limit?
I'm building a page with two levels of Ajax controlled content. Either works fine alone, but when Ajax is used to open the first layer, the second, which is nested inside it, doesn't work. There are six links at the top for various topics, including "Agriculture". Here are the link code, Ajax function, and div tag: Code:
View Replies !
Loading A Page With Ajax Or Sajax?
Well i have a problem i want to be able to run my messenger and music player or every page on my site just right now not much of the site is using Ajax or sajax, is there a way to load a php document in the page without having to reload my messenger or music player?
View Replies !
How To Bring The Processing Page
I need to submit a form to a php scripts which does some processing and takes time in the mean time i want to show to the users of the webpage a processing page. I do not know how to bring an intermediary page....
View Replies !
Login Page Processing
I have to use a login form in my web based project. After the username and password has been verified from the database, the system has to display the module for which the user is given access to. How do I code this aspect without using the anchor link. eg: echo "<a href='somepage.php'>Youhave been directed to the abc system</a>; " I have considered 2 options: 1).To have a select case and display the module address; 2).To get the module address from the database and direct the user to that page.
View Replies !
Page Processing Animation
I have a sendmail function which works great. It goes from details.php (where they enter their info etc) and onto sendmail.php (which compiles the info and sends the email. After sendmail.php has finished doing it's work i made it echo some HTML basically something like "thankyou, your email has been sent etc". This all works great! The problem is that while sendmail.php is sending the email it can take around 20seconds, during which time the web browser is basically just blank... I want to have some kind of simple flash animation just up there saying something like "processing" so the user doesn't get worried and try to send again or leave the page altogether... How can i make it display some other html while the sendmail script is in process?
View Replies !
Processing And Page Output Order
I have been using php for some time now and have got the hang of fairly high level processing including dynamic images from mysql output that leads me to the point of needing to better understand the processing /logic order of the php engine so i can increase the speed of my scripts. Code:
View Replies !
Processing Variables In An Included Page
I'm setting up a template based CMS where the template script looks a little like this: <html> <head><?php echo $title;?></head> <body> <?php // inserts the content into the template $page = $_GET['page']; include("$page.php"); ?> </body> </html> $title is defined in the page to be included, but it's not being echoed - is there a way to ensure that variables in the included page are processed by the template script?
View Replies !
Using AJAX, How Can The Page Get State Infomation From Backgroud PHP Script?
I'm not familiar with web programming, but I have a problem here. I have a page. When a user click one button on it, I will use AJAX to request a PHP script which will do a bunch of tasks, asynchronously. These tasks might take long time so I want to keep the user informed of the progress. The problem is that only the PHP script knows the progress, how can the web page gets these information from PHP script?
View Replies !
PHP Form Processing Hangs Page Load
I am trying to write a simple PHP script to process a form.. the function seems to be working fine // subscriber is the users email in the form if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') ) thing is while this processing is taking place the page load hangs... in IE i see nothing the page background, in Firefox (even worse) I get only 1/2 the page.... I would like the whole page to load the the processign to take place, except that my PHP is 1/2 way down the page, inside the form
View Replies !
Form Processing - Output In A List On The Page
I have a MS Access database which holds my products. On my products.php page i use PHP to access the products and output them in a list on the page. As well as displaying the results i echo out a text field after each record displayed called 'code', which is for the user to enter the product code of the item they wish to buy into. Because text field will appear after every record in the database i have called it 'code' in order for me to then have some php code submit all of the fields which the user has filled out and place them in a single field within my database and have each order nuber separated by a comma. Code:
View Replies !
Display Message Page During Server Side Processing
what is the standard way to "push" an intermediary message HTML page to the user while a server side process executes? for example, in many forums such as this one, you get an HTML page containing a message, like below, that displays while the application completes its process. "processing your post please wait and you will be returned to the forum". Then after the server side process is complete, it sends up the final result of the process, in the case of a forum, returning you to the thread you started or responded to. I plan to use something similar for file upload scripts so the user will have some sense of the status of the upload continuing, then finally receiving a message that upload was successful or failed due to some error. Can this be done through one script printing out two different HTML pages each with their own HTTP header?
View Replies !
Tracking Pixel In A Processing Script, Instead Of HTML Page
I have a Web form that is filled out on my company's web site. When the submit button is pressed, the form data is posted to a PHP page that (in the background) inserts their information into a database, sends them a confirmation e-mail, etc. Once the form processing is done, the user is redirected to a Thank You Page. The thank you page has the following code in it: [code]..... This code adds the user to an opt-in list so that we can send them other products and services. THE PROBLEM: Some of our affiliates collect our user's form data on their Web site via a co-reg page, when this happens, they are posting the form contents to the form processing page on my server, but the user never sees the thank you page, so the IMG SRC code above is never displayed, and they are never added to our opt-in list. QUESTION: How would I insert the same code above in my form processing page (that processes in the background) so that the opt-in occurs on the form processing page, and NOT the thank you page?
View Replies !
PHP Form Processing With URL Parameters And Forwarding To HTML Page
I felt this query would be relevant to HTML and PHP forums. I am currently modifying a PHP IMAP script which allows the user to view their email via a web browser. I have made use of URL parameters which are passed to the webserver, and processed by the PHP code (better than javascript). No problems so far :) When I have reached a point where I no longer need these parameters, I use PHP header/location forward to reload the HTML form page. If my page was http://www.mysite.com/ foo.html and I was forwarding** to this specific URL (without any ***?myval=????&anotherVal params). When I reload the form**, I keep my URL parameters that were present*** the previous time the form was processed (they are there in the URL_REFERRER). Can someone tell me how to lose the parameters, so I just forward to foo.html. :)
View Replies !
Form Processing - Create The Page And Have The Records Inserting
I can create the page and have the records inserting, without any issue, but the problem I'm having is trying to understand the process involved. I can find lots of tutorials on how to insert records but none on the logic behind it. Can anyone point me in the direction of a tutorial. What I'm trying to understand is the how the form submits the page (to where I'm not sure) and then executes the form handling. I'm using Dreamweaver to create the insert form, if that is of any consequence.
View Replies !
A Web Development QUICK LINK PAGE (QLP) - HTML, Perl, PHP, JavaScript, AJAX, CGI, Etc.
I've recently organized and even color-coded many of my favorite bookmarks on WEB DEVELOPMENT (and a few other favorite subjects too) into what I call QUICK LINK PAGES. These are very condensed, compact (no graphics), fast-loading pages with a 100+ links to some of my favorite web sites on a particular subject. I hope you'll give them a try... Here's the link... The easy-to-remember link above gets you to one of the Quick Link Pages (QLP). The current categories (DIVERSIONS, INVESTING, JAZZ, MACINTOSH, OPERA, PHYSICS (with ASTRONOMY and MATHEMATICS), SPORTS, WEB DEVELOPMENT, and WINDOWS) are color-coded on the top of every page. Just click your favorite category. I hope you'll find a lot to enjoy. If you find any errors, or have suggestions for additional links or categories,
View Replies !
Pop Up Layer
I want to call a pop up registration form from my home page. However, I only want it to be called just once so that I don't annoy visitors. How do I achieve this with PHP? I have tried to use cookies and an include call to the pop up but I am not getting anywhere;
View Replies !
SQL Abstraction Layer
As indicated in the title, I am looking for a PHP library able to create on the fly complex SQL requests, on 5 or 6 dimensions, without problems occurs on many-to-many relations, etc.
View Replies !
HTML Layer Using PHP
I am a complete newbie when it comes to PHP. I have been working a web site on my local machine getting it prepaired to place on a host. I am wanting to add forums to the site by using phpBB. Now my question is this. On my main page that i have set up i have several html layers that are only active when the appropriate tab is click. What i am wanting to do is have the phpBB boards sho within the forum layer i have set up when someone clicks on it.
View Replies !
Two Layer Presentation
First, I don't want to use javascript. I'm happy with PHP and I have heard that IFrames can do this, I just don't know how. The page will have a largeish map, probably 500px wide and 1000px high. It will have imagemap hotspots at a number (probably 25) of locations. When a location is clicked, I would like to be able to show a <div>lots of info pulled from a mysql database</div> superimposed on the map. I would guess that opening a new window is one way. But it would be better (I think) to have a popup style window (especially a borderless one) hover over the original map. I know how to do it with javascript, but I'm concerned about users who have JS turned off or who have popup blockers.
View Replies !
Abstraction Layer Dilemma
I have a huge problem tht's hanging over me. I'm looking for an abstraction layer that is both extremely fast, support features such as : TO_DAYS(CURDATE()) - TO_DAYS(created) <= 7 DATE_FORMAT(created, '%a %b %D %x') created (this is mysql) AND that is able to get the results via an object Just like the php function mysql_fetch_object.
View Replies !
Pear And MDB Abstraction Layer
i want to ask you something about this pear package. I'm looking the source code, but i didn't understand in what way the "execute()" function returns a recordset from a database. The documentation says: @return mixed a new result handle or a MDB_Error when fail and the code is something like this: PHP Code:
View Replies !
Design: OOP Layer Over Database
I manage a complex website (5000-10,000 lines of source code) that stores various information in about 25 MySQL tables. Everything runs fine, but there is a lack of programming discipline/consistency throughout the hundred or so source files. (I am not the original developer) My idea (surely I'm not the first) is to abstract every oft-used table into an object, making database calls only in the constructor, with, at minimum, an attribute (member var) for every necessary field in the table. The only potential problem I see is that a constructor cannot return a value, so that database failures may go unnoticed, though well-placed die()'s may mitigate this factor. My other concern is that performance may suffer (due to OOP overhead) for the sake of structure / readability, which may or may not be an acceptable tradeoff. The site does not use any form of caching or acceleration currently, so there is room to make up for the overhead.
View Replies !
Using An Abstract Layer For DB Access...
Are you usually using an abstract layer for your DB access? Which one? Is there then some restriction in the kind of request you are using? For example, "Select * from table LIMIT 0, 10" is not working in much database. Is the abstract layer dealing with that or at least avoiding me to use such a thing?
View Replies !
Database Abstraction Layer
A site I go to regularly started bragging about using it. I had never heard of it and did some digging. As far as I can tell it's "French Perfume". Meaning it's coving up the smell of bad hygiene. Other than the fact that it will allow your script to work with any database with very little changing of code, is there any reason to mess with this? I see several problems including increased overhead and less secure. That is unless I'm missing something in my reading.
View Replies !
Show/hide Layer
I have a sub menu that I need to hide and show when the appropriate page loads ( onLoad??? ). the layers that need hiding and showing are in the include file ( header.html ). Im not sure how to communicate this hide/show function to the header.html from the loading php pages.
View Replies !
Accessing Anchors In A Layer
I have a layer with three layers inside of it. Each layer has an anchor attached to it. Is it possible to access each one of these anchors through the http protocol, or should I break up each layer into the main document and access each one of them there? Code:
View Replies !
Can Header() Do A Div Reload Without A Page Reload (ie Ajax-type)?
I have a display page (displaypage.php) divided into two panes - one for content and one for feedback, referred to in the CSS as contentDiv and feedbackDiv respectively. When I click on a word in the content pane, I do a PHP/PostgreSQL search for similar words, and the results appear in the feedback pane without a page reload. For this, I am using a very basic Ajax setup Code:
View Replies !
System Where User Can Layer Images Upon One Another
i want to create and i'm ambitious [or stupid] enough to want to try it. This is what i want to create: A system where i can layer images upon one another, have Base image and then layer another image on top of it and so froth [using transparent .gifs] I'm unsure of what i need to know everything i've looked into points to using a GD library however, i'm not sure that can do what i want it to do. Can anyone give me a little insight here?
View Replies !
Form Processing - Get The Target Page To Process The Form Variables
I have a form embeded in a html page. The form comprises of 3 inputs (2 <select>, and a submit button). The action is set to a php page. What I am trying to achieve: I would like to be able to get the target page (php page) to process the form variables in 'if.. else' statements and direct the visitor to the relevant page which contains the information that has answers for their queries. Example: variable1=="small" (entered from a <select> input) Variable2=="truck" (entered from a <select> input) this info is submitted to process.php I would like 'process.php' to combine the 2 variables and send the visitor to a page called: small_trucks.htm or small_trcuks.php (either extension will do). Note that the final pages the visitor to be directed to are unique pages and need to be displayed in the form of pages and not IFrames. If you are familiar with this, would you kindly create a code for the above example..? and would you also be able to tell me where to insert that code in the php page..?
View Replies !
Transparent GIF
I am trying to resize transparent GIF images, so I was reading, and they say to use fopen, fread, and read the first 13 bytes... OK, so I read in a transparent gif, and the first 13 bytes... and echo it out to the screen, and I get this: GIF89a›�s�÷��What am I supposed to do with that? they then say "allocate that color as transparent, and use imagecopy(); to set the transparency back."
View Replies !
Transparent .png
This isn't totally related to php, but I am using a php generated page that is using transparent .png's. Anyway, when I view the page in Internet Explorer, the transparency within the png is replaced with grey?? But when I view it in Firefox it works fine?
View Replies !
|