FireFox Select List not working with Spry XML Data set.
I am having a problem with FireFox. I have a set of related select lists that allows a user to pick a state and then a market. The work in all browsers except FireFox. I'm totally stumped. Here is the link. Any assistance greatly appreciated!
http://myxpertise.pointinspace.com/create.php
Thanks,
Joe
<span spry:region="dsCities dsStates dsStates" id="citySelector">
<select spry:repeatchildren="dsCities" id="citySelect" name="citySelect" tabindex="5" >
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected" tabindex="5" >{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}" tabindex="5" >{name}</option>
</select>
that should be a spry:detailregion, and you have a double dsStates
And when you are using multiple datasets inside a region, it might wise to prefix you template tags with the correct dataset
{ds_RowNumber} => {dsStates::ds_RowNumber}
Similar Messages
-
Cascading Select Lists - Not Working for me
I am trying to implement Denes Kubicek's Ajax Cascading Select List solution.
http://apex.oracle.com/pls/otn/f?p=31517:119
But it is not working for me.
I'm a newbie to APEX and checked the forum for advice on cascading select lists. I saw the thread for
"Cascading Select Lists - Not Working" posted by sue and the replies by Varad Acharya, but I'm still
having issues of not seeing the alerts, not able to run the pl/sql process in SQL Workshop, and not
getting the expected results.
I have a list of countries (US - USA, CA - CANADA, etc.) and a list of states for each country. When a
user selects a country I would like to show the list of states within that country.
This is what I've done so far:
Defined an application process:
Process Point: On Demand: Run ... by a page process.
Name: CASCADING_SELECT_LIST1
Process Text:
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<select>');
HTP.prn ('<option value="' || 99 || '">' || '- All States -'
|| '</option>'
FOR c IN (SELECT state_code || ' - ' || state_desc d, state_code r
FROM tbk_state
WHERE country_code = :cascading_selectlist_item_1)
LOOP
HTP.prn ('<option value="' || c.r || '">' || c.d || '</option>');
END LOOP;
HTP.prn ('</select>');
END;
defined and application item:
Name: CASCADING_SELECTLIST_ITEM_1
Build Option: - No Build Option -
Created a 'Form on a table with report' as follows:
Page 5: Report on TBK_HARDWARE_LOCATION
Page 6: Form on TBK_HARDWARE_LOCATION
in HTML Header of the page attributes for 'Form on TBK_HARDWARE_LOCATION' I have:
<script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='"DELETE_CONFIRM_MSG"';
//-->
</script>
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
alert ('Dept no=' + pThis.value);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
// gReturn = get.get();
alert('Enames=' + gReturn);
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
On Page 6: 'Form on TBK_HARDWARE_LOCATION' I have the following items (plus some others):
Name: P6_COUNTRY_CODE
Display as: Select List
HTML Form Element Attributes: onchange="get_select_list_xml1(this,'P6_STATE_CODE');"
Source Used: Only when current value in session state is null
Source Type: Database Column
maintain session state: Per session
Source value or expression: COUNTRY_CODE
Named LOV: LIST OF COUNTRIES
Name: P6_STATE_CODE
Display as: Select List
Source Used: Only when current value in session state is null
Source Type: Database Column
maintain session state: Per session
Source value or expression: STATE_CODE
Named LOV: - Select named LOV -
List of Values definition:
select state_code || ' - ' || state_desc d, state_code r
from tbk_state
where country_code = :P6_COUNTRY_CODE
order by 1
LIST OF COUNTRIES is defined as:
select country_code || ' - ' || country_desc d, country_code r
from tbk_country
order by 1
Now to the problem:
I run page 5 (the report) to see the list of locations and then I try to edit a record (page 6). When I
try to select a different country I get the following error (on IE):
"Problems with this web page might prevent it from being displayed properly or functioning properly.
In the future, you can display this message by double-clicking the warning icon displayed in the status
bar.
Line: 17
Char: 5
Error: Object expected
Code: 0
URL: http//cmrac4.cm.timeinc.com:7777/pls/htmldb/f?
p=114:6:1413254636072443110::::P6_HARDWARE_LOCATION_ID:2
I don't see any of the alert messages.
I also tried to run the application process code in the SQL - Command Processor (I replaced
:cascading_selectlist_item_1 with 'CA' or 'US') and got the following:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource
'http://cmrac4.cm.timeinc.com:7777/pls/...
<select><option value="99">- All States -</option><option value="X1">X1 - X1</option><optio...
Can someone help me please?Varad,
First, thank you for taking the time to try to help me with this problem.
When I view the page's source code (here are the first few lines):
<html lang="en-us">
<head>
<script src="/i/javascript/core.js" type="text/javascript"></script>
<link rel="stylesheet" href="/i/css/core.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='Would you like to perform this delete action?';
//-->
</script>
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
//alert ('Dept no=' + pThis.value);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
// gReturn = get.get();
//alert('Enames=' + gReturn);
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue);
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
It looks like line 17 is:
var l_Select = html_GetElement(pSelect);
I'm still not sure why I'm getting this error and why it's not working?
Thanks,
Eti -
i have laptop with digital persona (finger scanning) to automatic feed the passwords. it was working properly with the older version of firefox but is not working with the latest version of the firefox. why? give me a solution.
Please authorize ADE 3 with same credentials that you used with older version of ADE
-
I downloaded the latest firefox 4 and updated my file, firefox 4 will not work with my version of Mac OS X, how do I get my old firefox back?
You can get Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
-
How do I get a previous version of Firefox. Firefox 17 does not work with online banking
How do I get a previous version of Firefox. Firefox 17 does not work with online banking edit
P.S. Firefox 17.0.1 is supposed to be released Friday ([https://wiki.mozilla.org/Firefox/Planning/2012-11-28#Current_Releases ref.]) so you should start checking for updates tomorrow by going to the Firefox Help menu and clicking on "About Firefox". See [[Update Firefox to the latest version]] for more information.
-
Firefox 5 does not work with Google Toolbar. How do I go back to the previous Firefox version that I had? Or how can I get my Google Toolbar back?
Google Toolbar [https://support.mozilla.com/kb/Add-ons%20are%20disabled%20after%20updating%20Firefox Add-ons are disabled after updating Firefox]
* GBookmarks (Google Bookmarks for Firefox) 25.6KB<br>https://addons.mozilla.org/firefox/addon/gbookmarks-google-bookmarks-fo/
* http://kb.mozillazine.org/Problematic_extensions
*for a Google Toolbar solution see https://support.mozilla.com/questions/837473 -
Hello,
I'm doing my best to create a page in Dreamweaver CS4 utilizing Spry datasets and, I hope, a valid nested XML file. What I want to do is use one XML file that provides the content for my nav div and my content div. It would, in essence, display as an outline. When a user clicks on an item in the nav div the content would be displayed. What I'm guessing would work for the XML file would be this format:
<content>
<topic name="Elements"> //--this would serve as the nav element and trigger
<header>Non-editable</header> //--this would serve as a header in the content area
<info>
<detail id="1">CSS, javascript</detail> //--this would serve as detail under the headers in the content area.
<detail id="2">Headers</detail>
<detail id="3">Footers</detail>
<detail id="4">Areas within navigation panel</detail>
</info>
</topic>
</content>
I got the idea from this page in Live Docs: Create a Spry nested data set. Also from a Labs page called Nested XML Data Sample. I've been able to make various parts of the page work but I don't know what is broken. My issues are this:
I once saw but can no longer find a method for preventing redundant display of data. In this case, the nav elements which are attributes in my XML file.
The details are showing up in my content area. I must be doing the code for the nesting incorrectly.
I want to then use the details in the content area to trigger spry tooltips, the content for whih would be genereated from an XML file or HTML frags.
Here is my latest, ill-fated attempt:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Menu - Content Example</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryNestedXMLDataSet.js" type="text/javascript"></script>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="SpryAssets/SpryStackedContainers.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var dsContent5 = new Spry.Data.XMLDataSet("navigation/content5.xml", "content/topic", {useCache: false});
var dsInfo = new Spry.Data.NestedXMLDataSet(dsContent5, "info/detail");
//-->
</script>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>CSU Website Clinic</h1>
<h3>Bill Milhoan, IS&T Technical Trainer</h3>
</div>
<div id="content" spry:region="dsInfo">
<ul spry:repeatchildren="dsInfo">
<li>{dsContent5::info}</li>
</ul>
</div>
<div class="nav" spry:region="dsContent5">
<ul spry:repeatchildren="dsContent5" spry:choose="">
<li spry:when="{dsContent5::ds_CurrentRowID} == {dsContent5::ds_RowID}" spry:setrow="dsContent5" spry:select="select" spry:hover="hover" spry:selected="">{dsContent5::@name}</li>
<li spry:default="" spry:setrow="dsContent5" spry:select="select" spry:hover="hover">{dsContent5::@name}</li>
</ul>
</div>
</div>
</body>
</html>
Thoughts? My hope is to distill this process so I can teach others how to do it in the hopes that they will find it easier to keep their department/program websites up-to-date.
Thanks for the help.
Bill Milhoan
Cleveland State UniversityI apologize, im using Spry XML Data Set. i guess the best way to describe what im trying to do is, i want to use the Non-desctructive filter sample with the Spry Nested XML Data sample. So with my sample xml on my first post and with the same code non-destructive filter is using, im having trouble trying to search repeating nodes, for some reason it only searches the last node of the repeating nodes. Does that make sense? let me know.
thank you Arnout! -
In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
I am running a 64 bit version of Photoshop from the CS6 Masters Collection
I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
The document size is 2100 by 1500 Pixels at 300 PPI only two layersIn Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
I am running a 64 bit version of Photoshop from the CS6 Masters Collection
I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
The document size is 2100 by 1500 Pixels at 300 PPI only two layers -
Spry xml data set, accessing specific rows
Hello. I've been trying to build a website using Spry XML
Data Sets, and while I've accomplished my goals for now, I don't
think the solution I came up with is the best.
The website consists of several areas that show projects.
Each project has several fields that are to be filled with content
retrieved from the xml files, but the projects are not all exactly
alike and some have specific fields that others don't require.
All the info is available in several languages, so for now
I've created an xml file for each one. An xml file could be like
Code Part1. (Why I can't add several code snippets along the post
baffles me. I mean, I can't, right?)
This dataset, for simplicity purposes, is not dependent on
the language (Code Part2).
And then there are the content areas (Code Part3).
So as you see, each project has its own structure. This makes
using spry:repeat a not very effective method for filling in all
the content. Ideally I should be able to access each row in the
dataset through some sort of value, like id, or one of its
children's values. The ds_RowID depends on the row order, so unless
there's another way to use it, it doesn't solve my problem.
Here's what I've come up with (Code Part4).
This works (in FF3 OSX, at least), although there are some
other problems that might make it necessary to create a spry:region
(or at least use spry:repeat) for each field. Anyway, it sounds
silly and wasteful to go through every row of the dataset everytime
for each of the fields that need to be filled.
My hope is that I'm ignorant of some much better method of
achieving my goals, something more direct and elegant.
Can anyone help me out with this? Thank you very much in
advance.Hi there
You are indeed absolutely correct a spry region should have been shown, my appologise for that, the code is wrapped in a standard spry region.
That being said i have used a work around in the SQL SELECT statement of the xmlExportObj, Recordset to find the information required without having to do any IF, ELSE on the page.
Many thanks for your reply and for pointing out my mistake in how I had presented my question.
My next question is to follow seperately
Regards
Ray -
Including HTML tags in Spry XML data sets
How does one add HTML tags to Spry XML data sets so that the displayed items include that markup?
For example, I might want to bold-face words within XML data items. I have tried adding the markup, but instead of seeing, for example:
This is bold face
in the Spry table, I see:
This is <b>bold</b> face
I have tried using CDATA elements in the XML to no avail.Set the data type for the column as per
var ds1 = new Spry.Data.XMLDataSet("myData.xml", "rows/row");
ds1.setColumnType("myColumn", "html");
Gramps -
Designing a 'sample time feed' for Spry XML Data Set
Hi!
Often when I call a Spry XML Data Set I find I can't get the
schema. If offers you the option to design a sample time feed but
doesn't give you enough info to be able to even guess how to do
this.
Is the answer in modifying that php line somehow?
Any guidance would be much appreciated!
MikeThe idea for Design Time XML is that you can use a static XML
file instead of a dynamic source, in case you don't have access to
the real data. You can use the Design Time XML to make the query
and design the page.
This gives you access to the data references for designing
the page.
If you are getting schema errors, the numbers that the dialog
shows is the line number and character number (1,1)
You should be able to see the XML directly in the browser. If
you can, then DW should be able to consume it. -
Just downloaded Firefox 4. It replaced the older version on my mac but will not work with my current version of OSX.
I cannot find where I can download the older version so now I do not have Firefox. Can you help>Perfect! This works!!! Mozilla... remember many Mac users keep machines a looooong time! They are like an old Mercedes. They never die.
-
Firefox 4 does not work on any Pogo games, neither did the latest version of 3.6.14 and since downloading the beta version of 4 I've had nothing but troubles and pages either not loading or taking forever to load. I do not like this version at all.
After trying everything else under the sun, I finally figured out that the problem was with the Adblock Plus program. Some of my games were not loading at Pogo.com, like Boggle, even though I made sure to clear all the caches and made sure my pop-up blocker wasn't on, the games still wouldn't work. Then I read something about Adblock Plus could be blocking some applets causing some games not to load properly and that's exactly what the problem was. The Adblock Plus preferences are found under the Tools button.I could've just disabled the Adblock Plus, but that made me a little nervous, so I just unblocked the items that were for the specific game that wouldn't load. To do that, I went to that particular game page where the room choices are. Not sure if you have to have Adblock Plus opened or not, but I did in a seperate tab. Then I hit cntrl + shift + V and it opened up the items that were blocked on Adblock Plus. The items in red are the items that are blocked. I just clicked on those to unblock them and the game loaded like a charm. Hope this info helps.
-
After 10.3.1.1779 update my phone Q5 had facing lots prblms... at first I can't download anything from amazon app store with normal deta connection, 2nd android apps not work with normal mobile deta connection its always need wifi, 3rd mobile search engine not worked properly and also contact books always show no contacts after restarts it's fixed bt some time later it's starts again... and pls give update for facebook.... plssss plssss blackberry fix those problem.....
Can I see your /var/log/Xorg.0.log through Pastebin?
-
Spry XML data set and dynamic post variables
Hi,
I am trying to create an XML data set that has dynamic post
variables.
Everytime something is pressed on the page a variable changes
and I then want to reload the XML data set using the new variable.
I know I can just pull in an XML with all possible variables
and filter client side but this would make it way too large.
Does anyone know what I may need to do.
I tried this:
var myVar = 0;
var dss = new Spry.Data.XMLDataSet (
'../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
"true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
"descending", useCache: false, loadInterval: 10000 } );
onclick="myVar=1";
But the script doesn't understand the post variables sent (it
does when I remove the . myVar part and put in a static value). I
think it isn't sending that dynamic variable with the post
variables.
Any ideas anyone?
ThanksWell I had it working when I stripped back everything and
just had the dss data set and a single onclick function, but now
that I put it back together it hash foobared again.
Here are the relevant bits of code that I've changed.
The function to change server id:
//function to run when changing the server id
function changeServer ( sid ) {
//set the url to use the current server id
dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
'POST' , postData:
'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
//force a reload of the server data
dss.loadData();
The inital load of the data set
var dss = new Spry.Data.XMLDataSet (
'../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
postData:
'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
"true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
"descending", useCache: false, loadInterval: 10000 } );
And the part that changes the server id
<td align="left" style="cursor:default; width:174px;"
onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
I checked that the function is receiving the correct server
id and I even tried hard coding the cid variable to 2 in the change
function but it still wasn't changing on the server side.
Any ideas?
Thanks
Maybe you are looking for
-
Can you remove money from one itunes account to another
I am trying to buy an add on to an app that we all ready have but for some reason it is saying that I connot purchase what I need because my account didnt purchase the app. Can I move money over ot how should I go about doing this.
-
Communication problem in Mac Photoshop 11.0.1 (CS4)
I'm using OS10.6.3 Mac, and recently Photoshop can not detect CanoScan 8600F (scanner): I see 8600F in the import menu in Photoshop vers. 11.0.1, but when I select it, I get an error message saying that 'Cannot communicate with scanner. Cable may be
-
Legacy Mapping Problem: Compound PK is Foreign Key
My job is to map beans using JPA onto a legacy database schema that must not get modified. I am stuck with doing the relation between two tables. The schema is: CREATE TABLE A ( a1 INTEGER NOT NULL, a2 INTEGER NOT NULL, PRIMARY KEY (a1
-
How can I have individual count of each branch?
Hi, I need to write a query for the following scenario. For ex: Reliance is a company which is has diffenect branches under city1, city2, city3. under city1 we have different regions like reg1, reg2, reg3. Under city2 we have reg4, reg5. Similarly un
-
Site Disappeared while editing through DW CS4. Help?
I designed a new site using Dreamweaver CS4. My web host, powweb, helped me with the configurations under Site|Management over the phone, and it showed up great on the internet! I then realized I misspelled a word in the index.html homepage. I edite