473,396 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Drag & Drop Sortable Lists with JavaScript and CSS in a IFRAME

I am using the Drag & Drop Sortable Lists with javaScript and CSS from http://tool-man.org/examples/sorting.html. It works beautifully in a single page, see http://www.molca.com/kkoke.html.

However, if I load the page in a Iframe the list is not sortable. The javascript gets stuck, see http://www.molca.com/kknotoke.html. I have searched the complete Internet, but I can not find a reference to this particular problem.

What is the basic idea that a javascript in an iframe does not work?

Arjen
Nov 29 '05 #1
2 2340
ar*********@nietbereikbaar.nl said the following on 11/29/2005 4:51 AM:
I am using the Drag & Drop Sortable Lists with javaScript and CSS
from http://tool-man.org/examples/sorting.html. It works beautifully
in a single page, see http://www.molca.com/kkoke.html.

However, if I load the page in a Iframe the list is not sortable.
The javascript gets stuck, see http://www.molca.com/kknotoke.html.
Try placing your page in a simple IFrame page without the redirections
and nothing else in the page. You will then start getting errors. But I
am not inclined to wade through 7 or 8 external files plus in page
script to find the problem.
I have searched the complete Internet, but I can not find a reference
to this particular problem.
<g> The "complete Internet"?

How long did it take you? I am considering a Search Engine and wonder
how long it would take to search the complete Internet <g>

Sorry, I couldn't resist the metaphoric description of searching the
"complete Internet"
What is the basic idea that a javascript in an iframe does not work?


Typically it occurs when you try to access or assume that the page is
the parent when it isn't and it throws off scope and variable issues.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 29 '05 #2
Randy Webb schreef:
Typically it occurs when you try to access or assume that the page is
the parent when it isn't and it throws off scope and variable issues.


That is the problem. But what is the concept of NOT being the parent. How can I load a page with Javascript as daughter and still execute it? That is, the page in the Iframe is not the parent. But how does the Javascript know where to load the daughter script. Or, the script is in the daughter, so why isn't it default executed in the first place?

Arjen
Nov 29 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
1
by: vincemoon | last post by:
Sites such as download.com, dealtime.com, shopping.com, and tucows.com, feature impressive sortable lists of products. What software that imports CSV can be used to generate database-driven...
6
by: ameshkin | last post by:
Hi, I've been working on a drag drop system and something happened when I tried to switch the code from a working model to one with another database. The drag drop still works, but the informatin...
2
by: ameshkin | last post by:
Hi, I'm working on a drag and drop feature with the scriptaculous javascript library. And I was wondering if someone could help me! :( Here is some test code. Basically, when someone takes...
2
by: anchi.chen | last post by:
Hi People, Just wondering if any of you have ever come across any javascript examples that will allow one to drag and drop multiple items between lists? That is, users would be able to use the...
5
by: empiresolutions | last post by:
Hello Fellow Developers, I am using the awesome drag and drop script found at http://script.aculo.us/. I have also added a modification that interacts to a db for reordering upon release of a...
1
by: libsfan01 | last post by:
hi im using drag and drop on my site, my problem is if i drop the content on a part of the page other than a container, that content disappears. is there someway to prevent this? here is my...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
1
by: patrickq | last post by:
What am trying to achieve is dragging an element from one IFRAME/FRAME into another IFRAME/FRAME. But upon dropping the element, I do not want the target IFRAME/FRAME to open/load it. I want to set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.