Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 588983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:22:34+00:00 2026-05-13T15:22:34+00:00

Whats wrong with this function? function yahooWeather(){ var loadPage = ‘yahooweather.php?p=’+ $(#myCity).val(); $(#yahoo).html(‘<img src=loading.gif

  • 0

Whats wrong with this function?

function yahooWeather(){
    var loadPage = 'yahooweather.php?p='+ $("#myCity").val();
    $("#yahoo").html('<img src="loading.gif" align="absmiddle">');
    $("#yahoo").load(loadPage);
}

Is there another way to write this function. Im unsure if its able to read the .val required, tho i know it is set as i used it in a previous function to test that it was being set, so im thinking its maybe my load call.

http://www.wetterkanal.tv/

This is the page. This function once called by clicking the button, should get the value set by the “select city” option then load the weather in a div below. I have set the css to this div as green so i know it loads. I also know that my php script works as if i test it by going to the following:

http://wetterkanal.tv/yahooweather.php?p=ASXX0001

it pulls the weather in correctly. Please help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:22:34+00:00Added an answer on May 13, 2026 at 3:22 pm

    Your problem is that the button element will reload the page when the button is clicked.

    You need to change your onclick attribute to onclick="yahooWeather(); return false;“.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone show me whats wrong with this: <html> <script type = text/javascript> function
I don't know whats wrong with this: var get_depth = function(item, depth) { if(item.parent_id
What wrong with this validation: Jquery: $(document).ready(function(){ $(#addcmd).attr(disabled,disabled); $(#cmdstxt).keypress( function(event){ var txt=$(#cmdstxt); if( txt.val().length
whats wrong with this jquery code. it is not outputting anyting? var imagesToLoad =
I always get 1 as result. :( Whats wrong with this function? def power(base:
Whats wrong with this code? function test() { (function(){ console.log('1') })() (function(){ console.log('2') })()
Whats wrong with this jquery? $(function(){ totalwidth = $(window).width(); if ( totalwidth < 1295
I don't know whats wrong with this function. I am trying to create a
What's wrong with this function: function() { $.get('/controller/action', function(data) { $('#temporaryPhotos').text(data); } ); return
What is wrong with this function... The function intends to remove the specified leading

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.