Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. you could solve it by using a loop yes. but you might want to look into the mootools accordion plugin http://demos.mootools.net/Accordion
  2. oscommerce is allright if you're not planning on modifying the front-end page designs a lot. These pages all use tables for layout and the shopping cart class and pages are a mess
  3. but you can combine the techniques like this. 1. main.php(main page with ajax call to local ajax_page.php) 2. ajax_page.php which does the following - get the users ip adress - get content from a remote site(http://www.whatever.com/some_ajax_page.php) and there you have it you get the users ip adress and the content of a remote page
  4. huh ??? include a file without ajax ,iframe, frameset or any type of serverside programming language? and what about catching the users ip on the local php file
  5. you're trying to apply pointers in javascript??? isn't that a C/C++ thing? If so that could be interesting I look forward to seeing a solution to this just for the fun of it
  6. If i am correct you wish to have a cross domain ajax call. this question has been discussed many times. http://www.phpfreaks.com/forums/index.php/topic,210103.0.html http://www.phpfreaks.com/forums/index.php/topic,210317.msg958743.html these are just two links on this forum there are a lot more topics to be found on this subject just do a search on this forum
  7. if you think it is php related try calling your php file directly in your browser and see what that gives you. I highly doubt its the php that goes wrong since php has nothing to do with the browser.
  8. putting it in a link maybe? and click should work for images <img src="some_image.jpg" onclick="alert('yes you clicked the image now be happy with it')"/> and what do you mean with click() if the onclick works?
  9. with flash there are a couple of ways to send data from php to flash. a couple of plausible solutions are: 1. amfphp 2. loadvars 3. xml data exchange 4. javascript calls (using a flash framework/library so you can use external javascript to do actions inside flash) and there really isnt a best solution for choosing your client solution. you could use a couple of things like: 1. ajax 2. Silverlight 3. Flash 4. Java applet
  10. your syntax i am not familiar with . as for your question do you want the function to return an array? if so then this might be the right direction function test() { var x = 3; var y = 7; return new Array(x, y); } just curious what is [a, b] = test(); suppose to do?
  11. it's because you still have the javascript for the horizontal one in your demo.js. remove all the horizontal events. as for having it closed by default. you could do this. <script> window.addEvent('domready', function() { var myVerticalSlide = new Fx.Slide('vertical_slide'); //add this after you instantiate the Slide object to close it at the start myVerticalSlide.hide(); }); </script>
  12. ty inner join was what i was looking for. Here is the query in case someone has a similar problem in the future select * from flights_full_data as first_flights inner join flights_full_data as second_flights on first_flights.destination_airport_id=second_flights.departure_airport_id where first_flights.departure_airport_id=DEPARTURE_AIRPORT_VAR and second_flights.destination_airport_id=DESTINATION_AIRPORT_VAR and first_flights.flight_arrival_timestamp <= second_flights.flight_arrival_timestamp + interval 2 hour and first_flights.flight_departure_date=DEPARTURE_DATE_VAR
  13. Allright usually i dont have much trouble with sql but this one is bugging me. I have a table with flight data which has the follwing fields(filtered out what's not needed) flight_id departure_airport_id destination_airport_id departure_country_id destination_country_id departure_timestamp arrival_timestamp selecting a flight with a selected departure and destination airports on a date isnt difficult. the trouble starts when i want a selection of flights where you have to transfer to another plane. does anyone have any ideas? thanks in advance
  14. here is one for you. http://www.w3schools.com/sql/default.asp the basic things you want to start with are most likely to be 1. select 2. update 3. insert 4. delete 5. the where clause
  15. Then your main problem is form validation. This forum is loaded with form validation questions. you might wanna do a search on "form validation" on this form that will surely help you. otherwise just google up php form validation. if that doesnt help. post some code of your form you want to validate
  16. doesn't sound tricky at all. It seems you just want to validate some kind of data and if it passes it does something otherwise it shows an error. But what is it you want to validate?
  17. It seems to me you are trying to solve a problem that really isnt the main problem. I asume you have a certain situation and you want some kind of result out of it. Can you explain the following things: 1. what is your input 2. what should come out of it/The result
  18. You might be looking for a shorthand notation its basicly puts the ifelse into the echo <?php $englishnumber=0; echo($englishnumber==0 || $englishnumber==NULL)?"zero":$englishnumber; ?>
  19. are you talking about saving text and displaying them with line numbers? ???
  20. I used both prototype and mootools. And i still wanna try out jQuery and Dojo. both prototype and mootools are very similar with difference that mootools is a lot smaller then prototype. only downside i see is that mootools seem to change their framework every 2 months this means that a lot of times you will have to rewrite your mootools classes/functions to work with the new release
  21. like ProjectFear posted, It's kind of pointless to disable print screen. You could build a function that would check which keys are pressed and then do something with it but even then if a user would click outside the browser the javascript wouldnt respond. To state things even simpler. Javascript==No security
  22. well maybe not ancient but classical at least i had a go at pascal 10 years ago too. that and turbo basic 15 years ago i think. and I said most likely to be seniors. then again what makes a language old C has been around since the 70's for example
  23. an alternative would be to not use excel. then you just use php to parse the csv then create a sql query and instert it into the database
  24. It probably is possible but I'm guessing this might be tricky. But in case you are looking for a way to to have a flat file database you might wanna try sqlite instead
  25. strangely enough this ancient language is probably still used. latest thing I can remember that was developed using Common Lisp was Jak and Daxter. read this article I found about it if you like http://www.franz.com/success/customer_apps/animation_graphics/naughtydog.lhtml If you want another reason why to learn Lisp here is one for you. Developers that are familair with old languages such as Lisp, Pascal, Cobal etc ...are scarce. Most developers that are familair with these languages are most likely to be seniors around their 60's. So there are probably employers out there that are willing to pay a nice salary for this expertise. Other then that It's fun to see how things started and having an understanding of the evolution of programming languages. I think i'll start on Cobal one day just for the fun of it
×
×
  • 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.