|
|
Hello all, I get the following error when hitting submit in my form to post to the spreadsheet: > Fatal error: Uncaught exception 'DOMException' with message 'Namespace Error' in /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php:220 Stack trace: #0 /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php(220): DOMDocument->createElementNS('http://schemas....', 'gsx:') #1 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets/Extension/Custom.php(64): Zend_Gdata_App_Base->getDOM(Object(DOMDocument), 1, NULL) #2 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets/ListEntry.php(77): Zend_Gdata_Spreadsheets_Extension_Custom->getDOM(Object(DOMDocument)) #3 /home/pedrum/public_html/Buzz25/Zend/Gdata/App/Base.php(329): Zend_Gdata_Spreadsheets_ListEntry->getDOM() #4 /home/pedrum/public_html/Buzz25/Zend/Gdata/Spreadsheets.php(336): Zend_Gdata_App_Base->saveXML() … |
|
I don't know why I cant find this anywhere online, it should be simple. I'm trying to GET event details based on the (given) event id. I'm looking for event title, description, image, etc... Does anybody know of a way to get these details with javascript? Facebook has posted this … |
|
I made the following code to replace form fields in a page that I can't edit but only manipulate. However, the code does nothing. In chrome console when I print a variable it works fine. The code is below: //GET val from drop DROP DOWN var office_id = FieldIDs["OfficeName"];//Gets the … |
|
Re:
I have a form with several inputs. One has a sub-input based on the condition of the original input. An example is: <input onChange="javascript:addRow()"/> The JS function works. function addRow() { Dynamic HTML code ... } However, if the original input is modified a second time, the JS function executes … |
|
So here is my current code that doesn't work for what I'm trying to do: <?php $urlp1 = "members/"; $urlp2 = 0; $urlp3 = ".html"; $url = $urlp1.$urlp2.$urlp3; $data = file_get_contents($url); ?> <script type="text/javascript"> var url = "<?php echo $url; ?>"; var temp = getElementsByClassName('daniweb'); document.write(temp); </script> <p style="margin-bottom: 50px;"></p> … |
|
Hi all, I'm new to xml and xslt. I'm trying to apply a stylesheet to my xml document but I keep getting no stylesheet available. Here is my code for my XSL document, XML, DTD, and CSS: XSL: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <style … |
|
So I have a text file with sets of 4 items I want to go in different arrays. I've tried the following but without success. <?php $urls="list.txt"; $page = join("",file("$urls")); $kw = explode("|", $page); $count = 0; $links = array(); $images = array(); $widths = array(); $heights = array(); for($i=0;$i<count($kw);$i++){ … |
|
Can someone please finish this off, i need the days to start going on the day specified [code=c] #include <iostream.h> int main() { int month;//asks for current month int days;//asks for day of start int numdays;//number of days in the month int monthstarter=1; //starts day count cout<<"Enter a month (1 … |
|
Hey guys, I'm a noob in javascript and want to know what I'm doing wrong. What I'm trying to do basically is hava a select menu determine where my strings are to be stored. Here is what I'm doing: The code: <form id="form1" name="form1" method="post" action="push.php"> <select name="ga" id="ga" onchange="gameApp(this);"> … |
|
I have a variable variable defined, suppose: $array[1] = Hello World; $i = 1; ${"name" . $i} = $array[1]; I then have the following: $val1 = "Hello World"; However when I try to compare $name1 to $val1, they are never equal. I've tried all of the following: if ($name1 == … |
|
I have the following code: $filename = "raw_data.txt"; $fp = @fopen("$filename", 'r'); if ($fp){ $array = explode("(.)", fread($fp, filesize($filename))); } for ($i=0; $i<sizeof($array); $i++){ //name1 name2 name3 name4 } So what I want to do is initialize variables with $name and the current $i value Thanks in advance |
|
Here is the code for my form: <form action = "index.php" method="post"> <!--the form is being submitted to the same page--> <button class="btn" name="button" onClick="submit()">Yes</button> <button class="btn btn-primary active" name="button" onClick="submit()">No</button> </form> And on the top of my index.php I have the following: <?php $refresh = $_POST['button']; ?> When I … |
|
Right now I'm trying to get multiple callbacks from a single feed, however I keep getting "val parameter is undefined" Here is the code: var m,i=100,s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["#","@","http","www","tweet","twit","Twit","TWIT","tweep","blog","text","follower","Follower","Text","Twee","txt",".ly","follow",".com",".COM",".net","yahoo",".org"," DM"," RT","RT:"]; var count = 0; var rand; u=function() { if (i--<1) { location.reload(); return false; } document.getElementById('w').innerHTML = "<h2><font color =\"red\">Error :(</font></h2>" ; … |
|
I dont know if this code actually exits, however I can't figure how to do it. You know how you can write javascript in a url of a website and write a command, I would like to do that except remotely. So something like this: >load website remotely (without loading … |
|
So I have a text file that has 4 items in each line. I would like to store these into an array. So this is an example of how they are stored: imgur.com | link.com | 60 | 468 Thanks in advance |
|
So here is what I'm trying to do: I have a file with a list of ip addresses eg.(123.45.6.789:80) I have two arrays; ip and port, what I want to do is break the address and place the parts into the arrays. so 123.45.6.789 would go into the ip array … |
|
Re:
Hi, I'm running into issues trying to layout a page that contains both html links using .png images and a .swf file that I would also like to have linked to another page. To see what I mean, I have a test page here [url]http://www.the-dream-release.com/test_page.php[/url] What I would like to … |
|
So I have this small program that draws circles of different colors depending on "velocity" Below is my code, btw I haven't actually implemented velocity yet. When I run it, I get these"[CODE]Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at Mouse.paintComponent(Mouse.java:35) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown … |
|
Re:
can anyone help me how to add a comment box in HTML? I'm new to html and I don't have any idea how to do it.. please help me |
|
I'm starting from the bottom of XML and all I want to do is display the elements of one tag. You'll understand what I mean if you look at the code. [CODE]<table> <script type="text/javascript"> if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code … |
|
I'm using the GapAppStarter (HTML5) to build a small app. I've ran into a problem though, the emulator won't parse PHP no matter what I do. Basically, I can't run any PHP through it. Whether its in the html document, in a PHP document, or if I run it through … |
|
So this is my assignment: Represent the concept of a Number. For this example a Number is a thing that can be added subtracted, multiplied and divided. Each of these operations is binary and produces a Number as a result. Encode the the Notion of of an Int (an integer … |
|
Hi guys, I am in desperate need of help. I'm not exactly sure how to fix this or how to pass contentpanes correctly. Here is my code for gameboard.java: [CODE]import javax.swing.*; public class GameBoard implements ActionListener { private int[][] winSlots = new int[][] { {0, 1, 2}, {3, 4, 5}, … |
|
So, basically I'm trying to fetch part of a json feed and output just that. Example, theres a bunch of posts, comments, and an image on the post. I want to only fetch the image. I've started out with [CODE] document.getElementById('url').innerHTML= url.value; r=function(data) {url=data['results'];};[/CODE] html [CODE]<script type="text/javascript" src="http://www.com/search.json?q=word&callback=r"></script> <style type="text/css" … |
|
Hi guys, I just got a mac and don't have any knowledge at all about obj-c, was hoping you guys can point me in the direction of creating apps in html5. I already know how to write in html5, just wondering how to do it in the sdk. Any help … |
|
I'm sure this is simple but here is what I need to do: I want to change a variable within the source url. Heres an example of what I'm trying to say: [CODE]<script type="text/javascript" src="url.com?lang=en&X=word1&;"></script>[/CODE] This works fine, but I want the variable X to be elsewhere, like this: [CODE]<script … |
|
Not really sure what a command line argument is, but here is an example question that I don't understand: "Write a program that gets 4 integers as command-line arguments, prints the values and their total." Can somebody show me how to do this? I have like 10 of these to … |
|
I was able to finish some: [CODE]def sieve( n, primes): numbers =[] # make a list of integers from 0 to n, inclusive for i in range(2, n+1): numbers.append( i ) # by definition, the first prime is 2 del(numbers[ _____________ ]) del(numbers[ _____________ ]) # while there are still … |
|
For my extra credit, I'm supposed to generate the longest chain from 1-1000000, I wan't to know if it is correct..here is my code: the caller [CODE] start = 1 end = 1000000 longest, chain = -1, -1 #choiceX(start) for i in range((end-start)+1): if choiceX(start) > longest: longest=start chain=choiceX(start) start+=1 … |
0 Reputation Points
~9K People Reached
Favorite Forums
Favorite Tags