theNoob's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Active Members
Active Posts:
66 (0.07 per day)
Joined:
14-July 12
Profile Views:
512
Last Active:
User is offline Oct 08 2013 11:09 PM
Currently:
Offline

Previous Fields

Country:
AU
OS Preference:
Mac
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
Playstation
Your Car:
Hyundai
Dream Kudos:
0
Icon   theNoob has not set their status

Posts I've Made

  1. In Topic: javascript reference error

    Posted 8 Oct 2013

    been playing around with css and html for the div tag but the trouble is that the results show up on the same page.
    is there a way to redirect it when the "products" button is hit, so the results show up on another page?
  2. In Topic: javascript reference error

    Posted 6 Oct 2013

    yeah it does.

    i was wondering, how easy/complex would it be to show the results in a popup windows, like a custom pop up window??
  3. In Topic: javascript reference error

    Posted 6 Oct 2013

    View PostDormilich, on 05 October 2013 - 12:55 AM, said:

    Quote

    how do show the products on a different page using ajax/json or even js? (not sure if this can be done or not)

    you can open a new page by window.open() (though whether that will load in a new tab or a new window depends on the resp. browser setting).

    alternately, if you want a new window anyways, how about a standard link?


    i tried window.open() as you suggested and it does open the new the new window however it does not display the products on that new page??? what am i missing/doing wrong? i've added the code below..

    <script type = "text/javascript">
        function productSearch(choice){
        	
    	    var input = choice;
            $('#test').load("http://127.0.0.1:8000/suzannecollins/default/authorproducts",  {"choice" : choice}, function() {
            })
            //window.open("http://127.0.0.1:8000/suzannecollins/default/authorproducts")
        }
    </script>
    
    <div id="test" style="width: 1000px; ">
    
    
  4. In Topic: javascript reference error

    Posted 5 Oct 2013

    i will try the window.open() function.
    we are meant to be using jquery/ajax/json with this project. haven't worked with this before so trying to learn as i go along
  5. In Topic: javascript reference error

    Posted 4 Oct 2013

    alright so i got the products to show up as well however they show up on the bottom of the page...

    how do show the products on a different page using ajax/json or even js? (not sure if this can be done or not)

    the final code that i have to get the products displaying is:
    <script type = "text/javascript">
        function productSearch(choice){
        	
    	    var input = choice;
            $('#test').load("http://127.0.0.1:8000/suzannecollins/default/authorproducts",  {"choice" : choice}, function() {
            })
        }
    </script>
    
    


    the results look like the image attached.. Posted Image

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Interests:
Cars, Computers, Movies, Games, etc.
Years Programming:
1
Programming Languages:
Java, C#, HTML, CSS, JAVA Script and Python.

Contact Information

E-mail:
Click here to e-mail me

Friends

theNoob hasn't added any friends yet.

Comments

theNoob has no profile comments yet. Why not say hello?