Jump to content

Iluvatar+

Members
  • Posts

    100
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Iluvatar+'s Achievements

Member

Member (2/5)

0

Reputation

  1. Why would we prototype the walk() method though?
  2. Hi guys i am trying to help out a friend with a bit of work and there is a question i am unsure of... "Define an object Animal that has a member function walk(). Then define an object Elephant that is a sub-class of Animal. Define a member function trumpet() on the Elephant object. Create an instance of the Elephant object and call both functions on that instance." Here is what my thoughts were... function Animal() { this.walk = function() { return 'walk walk walk'; } } function Elephant() { this.prototype = new Animal(); this.trumpet = function(){ return 'splash splash'; }; return this; } var Elephant1 = new Elephant(); console.log(Elephant1.prototype.walk()); console.log(Elephant1.trumpet()); I am unsure if i am going to right way about this.
  3. Thanks for you help guys, sorry i didnt reply sooner.
  4. What is it your trying to do here...i dont have a clue what your on about
  5. I have a drupal module that generates a csv and spits it out onto a blank unmarked-up page. What i need is a bash-script to run on a cron-job to get the csv content and save it as a file (with unix timestamp as its name) onto another server. This is something i have never done before so if anyone would be kind enought to lend a helping hand it would be much apreachated.
  6. I need to generate a csv orders file from an array and store it in a directory on the server. Has anyone done this before?
  7. Cheers dude, ill be making the modifications asp
  8. function open_win(val) { window.open ("chats.php?id="+val,"mywindow","menubar=1,resizable=1,width=350,height=500"); }
  9. You coulds pass the value of the select into the js function and append it on the URL and dectect the value on the pop-up using $_GET
  10. Well i apologise for my lack of response. From my observation it seems there was confusion between $_GET and $_POST.
  11. echo '<pre>'; print_r($_POST); echo ''</pre>; :| check
×
×
  • 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.