I am attempting to create a responsive website. On my left hand side I have a jpeg image and on the right hand side there is a box with text description. However when I view the website on a smaller screen device it is not resizing properly especially the image. Apart from that both image and box with text description is not centered. Did I miss something? <!DOCTYPE html> <html lang="en-us"> <head> <style> .city { float: left; margin: 10px; padding: 10px; width: 450px; height: 300px; border: 1px solid black; } .leftbox{ width:500px; float:left; margin:10px 120px 0px 100px; } @media only …

Member Avatar
Member Avatar
+0 forum 3

Hi all, I'd like to create an interactive voice response menu system on my own. I'd like to use my MySQL database. I have a found an interesting idea (https://ivrhttpozml.codeplex.com/), but it's based on using a webserver. In short, the previously copied guide presents a simple XML code (more exactly an OzML code) and it should be hosted through a webserver. Does anybody have a similar solution using a database server? Thanks in advance

Member Avatar
Member Avatar
-2 forum 2

Hello Community, I'm trying to make a way to post data to my php file located on my website, I tried it on my Windows 8 laptop; it worked fine, then tried it out on my Windows 7 laptop and for some reason it won't work. I have gone through so many test to find the bug and I'm sure it's got something to do with the get response command because I set a try function and had a look in the error (ex.ToString) and the first error was the get response command, there are more errors but I think …

Member Avatar
+0 forum 0

Basically I have a java application that can display the data it outputs onto a webpage. I have a div containing tables, each table representing one java object and its values, after a period of time I want AJAX to refresh that div with the new data. Problem, I'm using a java servlet as certain actions have to be performed on the data before it can be displayed on the page(they are snmp objects so I have to use snmp methods to get the values of their OIDs). It seemed to work at first but I noticed the refresh interval …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have no idea in which forum to post this. I run three similar web servers, all w2008R2 with IIS7. two of them only contain ASP / ASP.net sites running on MySQL. The third also contains Sharepoint 2010 with MSSQL server. This server has a problem that is does run non sharepoint sites, but only right after a iisreset. After a while, something seems to go to sleep, because if I do not visit a non SP site for several hours (I did not really time this), it never wakes up: The browser waits forever and I find nothing …

Member Avatar
+0 forum 0

hi fellows, my server seems to be sometimes returning wrong html to webclients. in order to debug this issue, id like to trace the html that asp.net is sending. in the Global_asax_PreRequestHandlerExecute i can access the response code and status, but cant seem to find the body html i tried to read the OutputStream like this: Dim ms = New MemoryStream CurContext.Response.OutputStream.CopyTo(ms) Dim sr = New StreamReader(ms) Dim rtext = sr.ReadToEnd but that throws a NotSupportedException Stream does not support reading. i have seen some solutions, but they mostly work for WCF, i need something more general any ideas? note: …

Member Avatar
Member Avatar
+0 forum 1

I am developing app where I need to capture an Information from Webpage after giving credentials automatically. Some how I managed to do Automatic login and redirection of page. Here is my code : HttpWebRequest req = (HttpWebRequest)WebRequest.Create("https://abcd.com.au/categories/A_dfn/sdf"); HttpWebResponse res = req.GetResponse() as HttpWebResponse; StringBuilder sb = new StringBuilder(); byte[] buf = new byte[10000]; Stream resStream = res.GetResponseStream(); string s = null; int c = 0; do { c = resStream.Read(buf, 0, buf.Length); if (c != 0) { s = ASCIIEncoding.ASCII.GetString(buf, 0, c); sb.Append(s); } } while (c > 0); string oldhead = "class=\"login_button\">"; string newhead = "class=\"login_button\"> <script type=\"text/javascript\">document.getElementById('btn').click()</script>"; …

Member Avatar
Member Avatar
+0 forum 2

Hi how do i create an application in ASP.net C# for HTTPWebRequest, HTTPWebResponse to send and get data back

Member Avatar
Member Avatar
+0 forum 3

Hello, I've been having a lot of trouble with collision detection recently. I'm attempting to make a 2D platformer. All I need is rectangle-on-rectangle collision detection, and then to respond on collision by moving the two rectangles involved in opposite directions. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 10

Hello everyone. I have a problem trying to develop a windows phone app as a university project. Part of it is to use google APIs. So I'm trying to make a test web request.My code is as follows: string api_request = "https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=AIzaSyDpXZSLtOeGLJcYwKKJs2yAAEdfLST0ZXs"; HttpWebRequest google_request = (HttpWebRequest)WebRequest.Create(api_request); HttpWebResponse google_response_file = (HttpWebResponse)google_response.GetResponse(); StreamReader google_response_datastream = new StreamReader(google_response.GetResponseStream()); As you can see I'm creating an HttpWebRequest object and I initialize it. However, when I try to get a response I create an HttpWebResponse object but the initializer method is not accessible. After some googling I find out that insted of the HttpWebResponse initializer …

Member Avatar
Member Avatar
+0 forum 8

How can I execute a function that will run while the client is waiting for the server response? Here is my code. I looked up and found a .load() function, but how does that fit into this? Any help would be great! Thanks $.ajax({ type: "POST", url: "mail.php", data: {name: name.val(), email: email.val(), phone: phone.val(), subject: subject.val(), message: message.val()} }).done(function(){ alert("Your message was sent. We will be in contact with you shortly."); window.location="index.html"; });

Member Avatar
Member Avatar
+0 forum 3

Hi! The keypresses in my new project does not seem to be registered. I've never had this issue before and I don't think it is SDL:s fault this time. Here is the code in main: #include <cstdlib> #include <iostream> #include <SDL.h> #include "playertank.h" int main ( int argc, char** argv ) { SDL_Init(SDL_INIT_VIDEO); SDL_Surface* screen = SDL_SetVideoMode(720, 480, 24, SDL_HWSURFACE|SDL_DOUBLEBUF); SDL_Surface* background = SDL_LoadBMP("Grass.bmp"); SDL_Surface* tank_body = SDL_LoadBMP("TankBody.bmp"); PlayerTank player1(200,200,32,32,10); SDL_SetColorKey( tank_body, SDL_SRCCOLORKEY, SDL_MapRGB(screen->format, 0, 255, 255) ); bool quit = false; while(!quit) { //Controls player1.move(SDL_GetKeyState(NULL)); //logics //draw SDL_BlitSurface(background, NULL,screen,NULL); SDL_BlitSurface(tank_body,NULL,screen,player1.getPos()); SDL_Rect* copy = player1.getPos(); std::cout<<copy->y<<std::endl; SDL_Delay(100); SDL_Flip(screen); } atexit(SDL_Quit); …

Member Avatar
Member Avatar
+0 forum 4

I have the following script: $('#login-box .forgot-pwd').click(function (e) { e.preventDefault(); $('#login-box #main-login').hide("fast"); $('#login-box .login-error').hide(); $('#login-box #forgot-login').show("fast"); $('#forgot-username').focus(); $('#login-box .forgot-send').click(function (e) { e.preventDefault(); $.ajax({ url: '/login.php', data: $('#login-box form.get-password').serialize() + '&action=forgot', type: 'POST', success: function(html) { if (html == 'success') { $('#login-box #forgot-login').hide("fast"); $('#login-box').append('<p>Your password has been emailed to you</p>'); $('#mask , .login-popup').delay(1500).fadeOut(300 , function() { $('#mask').remove(); }); } else { $('#login-box .login-error').show("fast"); } } }); }); }); For forgotten password. The PHP is: $email = trim($_POST['forgot-username']); $objcustomer = new customer; $objcustomer->get_pwd($email); $cust_auth=$objcustomer->password; if (!empty($cust_auth)) { $to=$email; $from='......'; $subject = '......'; $headers = "From: ......\r\n"; $headers.= "Reply-To: $from\r\n"; $headers.= 'Content-type: text/plain;charset="iso-8859-1"'; …

Member Avatar
Member Avatar
+0 forum 11

I am doing a cross-site ajax to java data transaction(Not sure if I named that correctly, so please forgive me about that). Part of code in Java file: [CODE]BufferedReader input = new BufferedReader(new InputStreamReader(connectionsocket. getInputStream())); DataOutputStream output = new DataOutputStream(connectionsocket.getOutputStream()); ... output.writeChars("some random text"); output.close();[/CODE] Also I have index.php file with some jQuery: [CODE]$(document).ready(function() { $("#send_data").click(function(){ $.ajax({ type: 'get', dataType: 'xml', url: 'http://localhost:1024/'+$("#command").val(), success: function(data) {console.log(data);}, error: function() { console.log("Error"); } }) }); });[/CODE] The command is sent correctly and received in Java side correctly. Then the request from java to ajax is 200 OK too. The output is also …

Member Avatar
Member Avatar
+0 forum 1

For example on any tinyurl/ajdeijad link (this one is fake), the link redirects to another url I cant grab the whole response because it is 200 MB- what can I do to JUST GET THE URL Here is my code: [code] Dim request1 As HttpWebRequest = DirectCast(HttpWebRequest.Create(urlvimeohd), HttpWebRequest) request1.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1" request1.MaximumAutomaticRedirections = 1 request1.AllowAutoRedirect = True [/code] How do you retrieve the url of the response (it redirects!) Thanks!

Member Avatar
Member Avatar
+0 forum 1

hi i made an image slider. it loads all the images from the data base using php and for sliding and timing intervals i used javascrpt and ajax. through back end of the systems can edit these images and upload new , update and delete. i want to reflect the changes made in the back end straight away in the front end. so i used ajax request. but unfortunately it doesn't work :( this is the first time i'm doing such a thing using ajax. so there maybe errors and in-accurateness. I used ajax to refresh a div. so that …

Member Avatar
+0 forum 0

Im trying to make a drop down menu bar purely using HTML & CSS, but one thing that is really bothering me is that it doesnt change to the backgroung color when I hover over the links I dont know why..? Heres the HTML, I used uls, div and li to create a drop down menu: [CODE] <div id = "navigation"> <div id = "navMenu"> <ul> <li><a href = "#">Aboot</a> <ul> <li><a href = "provinces.html">Provinces</a></li> <li><a href = "monarchy.html">Monarchy</a></li> <li><a href = "culture.html">Culture</a></li> <li><a href = "food.html">Food</a></li> </ul> <!-- End inner Ul--> </li> <!-- End Main LI --> </ul> <!-- …

Member Avatar
Member Avatar
+0 forum 3

Hi i need to make a [B]BASIC[/B] HTTP server for a project using [B]JUST[/B] TCP/IP Sockets so please don't suggest anything that would use some of C#'s higher level networking components, Thanks =). [B]Anyway my problem:[/B] i have created the server and it all works so far but i haven't implemented the HTTP Headers properly, if i leave out all the headers i wrote then some browsers work fine with it (can't remember which) but when i add in the headers (and change them around trying to get it to work) it only shows part of the page or doesn't …

Member Avatar
Member Avatar
+0 forum 5

With our sites running IIS prior to 7, if someone hits a site with no SSL cert installed via https, they would see the same web page as someone hitting it via http. In IIS 7.5 that changed with bindings so now, under the same conditions, the https request gets a "Internet Explorer cannot display..." error message. Where is this message coming from? IIS? Is there an error code associated with it? Most importantly, how can I intercept that https request and gracefully automatically redirect them to the http page? Or can I at least show a custom error page?

Member Avatar
Member Avatar
+0 forum 1

Here is my ajax call: [CODE] new Request.HTML({ url: 'users.html', method: 'get', update: 'go', evalScripts: true, /* !! Why isn't this working!? */ onComplete: function(){console.log('ajax complete!')} }).send()[/CODE] I even check eval scripts! users.html: [CODE]<label><h3>Save data here:</h3> <br /> <section id="load" style="display:none;"> <img src="progress.gif" /> </section> <section id="log"> </section> <table> <tr><td>Data:</td><td> <textarea id="texta" placeholder="Save here." wrap="off" autofocus></textarea></label> </td></tr> <tr><td>Are you human?</td><td> <div id="cap"> <script src="http://api.adscaptcha.com/Get.aspx?CaptchaId=1049&PublicKey=ac589518-4f4e-4566-ae26-c37c0f535a17" type="text/javascript"></script> <noscript><font color="red">Please enable javascript!</font></noscript> </div> </td></tr> <tr><td>&nbsp;</td><td> <input type="button" value="Go" name="submit2" id="start2"/> </td></tr>[/CODE] This is not executing: [COLOR="Red"]<script src="http://api.adscaptcha.com/Get.aspx?CaptchaId=1049&PublicKey=ac589518-4f4e-4566-ae26-c37c0f535a17" type="text/javascript"></script> <noscript><font color="red">Please enable javascript!</font></noscript>[/COLOR] What is the solution so the script will run?

Member Avatar
Member Avatar
+0 forum 1

[B]Hi i am reciving XML File and trying to send a rspone to it my code is:[/B] [CODE] string sProcess = ""; XmlDocument objXML = new XmlDocument(); DateTime NowD = DateTime.Now; String DateD = NowD.ToString("yyyy-MM-ddThhmmss"); try { sProcess = "Load XML"; objXML.Load(Page.Request.InputStream); objXML.Save(@"D:\Payment-" + DateD + ".xml"); objXML.Load(Request.InputStream); XmlNode rootNode = objXML.DocumentElement; XmlAttribute StoreIDXml = rootNode.Attributes["Main"]; XmlNodeList PartnerXML = objXML.GetElementsByTagName("Sender"); XmlNodeList ItemXML = objXML.GetElementsByTagName("Receiver"); Response.StatusCode = 200; Response.StatusDescription = "OK"; Response.ContentType = "text/xml"; Response.ContentEncoding = Encoding.UTF8; objXML.Save(Page.Response.OutputStream); } catch (System.Xml.XmlException ex) { Response.StatusCode = 500; Response.StatusDescription = "Process: " + sProcess + " - " + ex.Message; Response.ContentType = "text/plain"; …

Member Avatar
Member Avatar
+0 forum 1

Hi ... I Need to work with more AJAX Content, So i want a JS Function with Arguments like URL(the url to Ping), Parameters to Send , ctype(Content Type XML,JSON or TEXT). All i need is when i Call the Function with these Arguments , the Function should return the XML or JSON object back... But the Obj is inaccesible outside the http.onreadystatechange =function() { if(http.readyState == 4 && http.status == 200) { obj=http.responseXML; } } i need to access 'obj' here outside the http.onreadystatechange =function(), SO that i can return it to the Called Function ... Now where am …

Member Avatar
Member Avatar
+0 forum 2

I want to compare web map serving tools for response time when serving a variety of maps. Can you direct me to a free or if not proprietary tool to use for the tool comparison.

Member Avatar
Member Avatar
+0 forum 3

Hi, I have an urgent ugly problem. I have a php file on a server that reads the name of the files of a directory from the server and POST them to my java application. When I try to read it, i get [CODE]Server returned HTTP response code: 400 for URL: http://www.xxxxxxxxxxxxx[/CODE]. This does not happens on files that do not contain white spaces. Only at URLs like: "http://www.abc.com/Hello world.gif" but not at "http://www.abc.com/HelloWorld.gif". I tried to encode the URL... I could not solve it. Please can you help me? I need it fast... Thanks!

Member Avatar
Member Avatar
+0 forum 3

Hi, I would like to know if it's possible to specify the "target='FrameName'" in response.sendRedirect("Home.jsp") by any chance? I tried this: [CODE] <!-- Security Check --> <form action="Login" target="_top"> <% if ((String) request.getSession(false).getAttribute("sessionStatus") == null) { response.sendRedirect("Login?pageTimeout=yes"); } %> </form> <!-- Security Check --> [/CODE] But it doesn't work... The target remains the same. Thanks, -Ashton.

Member Avatar
Member Avatar
+0 forum 2

The End.