Jump to content

xerox123

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Female

xerox123's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ;)That's quite fancy... I was looking for something more simpler, like displaying the contents in textarea... The button that should display my alert box has two action....i wonder whether that is the problem why alert box does not appear.... When the button is clicked the alert box should be displayed followed by another pop-box for downloading a file..... This is the sequence of events: 1) Button is pressed 2) Script is run to generate a file 3) Some of the contents of the file need to be masked before they can be displayed 4) File contents is displayed in pop-box 5) pop-box is closed 6) Download box appears to download the same file All these events have to take place on one button click. Maybe the alert box does not appear because there are so many event taking place on one button click. Do you suppose there is problem in having so many events in one button click?
  2. can you provide an example? Where the contents of a file are read...and displayed.....
  3. I want to read the contents of a file, line by line, edit some lines and display the whole contents of the file using an alert box. Or a pop-up box. This pop-up box or alert box should come up after clicking a button. :-\
  4. The example you provided is running fine. However, I want to display the contents of a file. <?php $fh = fopen("example.txt", "r"); while (!feof($fh)) { $line = fgets($fh); $file = $file . $line; } fclose($fh); echo "<script type='text/javascript'>alert('{$file}');</script>"; ?> but the alert box is not appearing...can u suggest sumthin? :'(
  5. does alert function have to defined in the php page? alert is pre-defined rite? echo "<script type='text/javascript'>alert('{$variabl}');</script> the alert box does not appear...
  6. This is my code $file = $file . $line; fclose($fh); echo "<script language= 'JavaScript'>alert(' . $file . ');</script>"; the alert box is not coming up. Please suggest a way to print the contents of the file in a alert box. :-\
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.